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/handler | |
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/handler')
-rw-r--r-- | spec/unit/handler/json_file_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/handler/json_file_spec.rb b/spec/unit/handler/json_file_spec.rb index f6c14a166e..76098e2522 100644 --- a/spec/unit/handler/json_file_spec.rb +++ b/spec/unit/handler/json_file_spec.rb @@ -16,11 +16,11 @@ # limitations under the License. # -require 'spec_helper' +require "spec_helper" describe Chef::Handler::JsonFile do before(:each) do - @handler = Chef::Handler::JsonFile.new(:the_sun => "will rise", :path => '/tmp/foobarbazqux') + @handler = Chef::Handler::JsonFile.new(:the_sun => "will rise", :path => "/tmp/foobarbazqux") end it "accepts arbitrary config options" do @@ -28,8 +28,8 @@ describe Chef::Handler::JsonFile do end it "creates the directory where the reports will be saved" do - expect(FileUtils).to receive(:mkdir_p).with('/tmp/foobarbazqux') - expect(File).to receive(:chmod).with(00700, '/tmp/foobarbazqux') + expect(FileUtils).to receive(:mkdir_p).with("/tmp/foobarbazqux") + expect(File).to receive(:chmod).with(00700, "/tmp/foobarbazqux") @handler.build_report_dir end @@ -54,10 +54,10 @@ describe Chef::Handler::JsonFile do expect(@handler).to receive(:build_report_dir) @handler.run_report_unsafe(@run_status) reported_data = Chef::JSONCompat.from_json(@file_mock.string) - expect(reported_data['exception']).to eq("Exception: Boy howdy!") - expect(reported_data['start_time']).to eq(@expected_time.to_s) - expect(reported_data['end_time']).to eq((@expected_time + 5).to_s) - expect(reported_data['elapsed_time']).to eq(5) + expect(reported_data["exception"]).to eq("Exception: Boy howdy!") + expect(reported_data["start_time"]).to eq(@expected_time.to_s) + expect(reported_data["end_time"]).to eq((@expected_time + 5).to_s) + expect(reported_data["elapsed_time"]).to eq(5) end end |