diff options
author | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
commit | 51cfbdc4d16739caac4d946fadbe678444aafe34 (patch) | |
tree | 56dfd8f1cd9fd933de27268b32402e955a43ac2b /spec/unit/json_compat_spec.rb | |
parent | 05064423057d4cf46f4713b81b08829cf6d20af6 (diff) | |
download | chef-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/unit/json_compat_spec.rb')
-rw-r--r-- | spec/unit/json_compat_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/json_compat_spec.rb b/spec/unit/json_compat_spec.rb index fd6469c146..524b71f09a 100644 --- a/spec/unit/json_compat_spec.rb +++ b/spec/unit/json_compat_spec.rb @@ -16,8 +16,8 @@ # limitations under the License. # -require File.expand_path('../../spec_helper', __FILE__) -require 'chef/json_compat' +require File.expand_path("../../spec_helper", __FILE__) +require "chef/json_compat" describe Chef::JSONCompat do @@ -46,7 +46,7 @@ describe Chef::JSONCompat do end describe 'with JSON containing "Chef::Sandbox" as a json_class value' do - require 'chef/sandbox' # Only needed for this test + require "chef/sandbox" # Only needed for this test let(:json) { '{"json_class": "Chef::Sandbox", "arbitrary": "data"}' } @@ -58,7 +58,7 @@ describe Chef::JSONCompat do describe "when pretty printing an object that defines #to_json" do class Foo def to_json(*a) - Chef::JSONCompat.to_json({'foo' => 1234, 'bar' => {'baz' => 5678}}, *a) + Chef::JSONCompat.to_json({"foo" => 1234, "bar" => {"baz" => 5678}}, *a) end end @@ -73,7 +73,7 @@ describe Chef::JSONCompat do end describe "with the file with 252 or less nested entries" do - let(:json) { IO.read(File.join(CHEF_SPEC_DATA, 'nested.json')) } + let(:json) { IO.read(File.join(CHEF_SPEC_DATA, "nested.json")) } let(:hash) { Chef::JSONCompat.from_json(json) } describe "when the 252 json file is loaded" do @@ -83,9 +83,9 @@ describe Chef::JSONCompat do it "should has 'test' as a 252 nested value" do v = 252.times.inject(hash) do |memo, _| - memo['key'] + memo["key"] end - expect(v).to eq('test') + expect(v).to eq("test") end end end |