summaryrefslogtreecommitdiff
path: root/spec/tiny_server.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-14 14:08:03 +0000
committerThom May <thom@chef.io>2016-01-14 14:08:03 +0000
commit51cfbdc4d16739caac4d946fadbe678444aafe34 (patch)
tree56dfd8f1cd9fd933de27268b32402e955a43ac2b /spec/tiny_server.rb
parent05064423057d4cf46f4713b81b08829cf6d20af6 (diff)
downloadchef-51cfbdc4d16739caac4d946fadbe678444aafe34.tar.gz
Use double quotes by default
This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
Diffstat (limited to 'spec/tiny_server.rb')
-rw-r--r--spec/tiny_server.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/tiny_server.rb b/spec/tiny_server.rb
index ec2a11fe43..8ad9d2695f 100644
--- a/spec/tiny_server.rb
+++ b/spec/tiny_server.rb
@@ -16,14 +16,14 @@
# limitations under the License.
#
-require 'rubygems'
-require 'webrick'
-require 'webrick/https'
-require 'rack'
+require "rubygems"
+require "webrick"
+require "webrick/https"
+require "rack"
#require 'thin'
-require 'singleton'
-require 'open-uri'
-require 'chef/config'
+require "singleton"
+require "open-uri"
+require "chef/config"
module TinyServer
@@ -48,9 +48,9 @@ module TinyServer
# 5 == debug, 3 == warning
LOGGER = WEBrick::Log.new(STDOUT, 3)
DEFAULT_OPTIONS = {
- :server => 'webrick',
+ :server => "webrick",
:Port => 9000,
- :Host => 'localhost',
+ :Host => "localhost",
:environment => :none,
:Logger => LOGGER,
:AccessLog => [] # Remove this option to enable the access log when debugging.
@@ -155,7 +155,7 @@ module TinyServer
:available_routes => @routes, :request => env}
# Uncomment me for glorious debugging
# pp :not_found => debug_info
- [404, {'Content-Type' => 'application/json'}, [ Chef::JSONCompat.to_json(debug_info) ]]
+ [404, {"Content-Type" => "application/json"}, [ Chef::JSONCompat.to_json(debug_info) ]]
end
end
@@ -185,7 +185,7 @@ module TinyServer
end
class Response
- HEADERS = {'Content-Type' => 'application/json'}
+ HEADERS = {"Content-Type" => "application/json"}
def initialize(response_code=200, data=nil, headers=nil, &block)
@response_code, @data = response_code, data