diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-14 14:34:02 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-14 14:34:02 -0800 |
commit | f144a985e44a8f3acf0275eeeae6739de200d0f8 (patch) | |
tree | 2bbe49bc8e2f7a54fbdf887ba27a2a656c178753 /spec | |
parent | ed93e0fb1644643cb0d064776b3283401dfba9a7 (diff) | |
download | chef-f144a985e44a8f3acf0275eeeae6739de200d0f8.tar.gz |
fixes Style/Semicolon coplcg/style-semicolon
these all seem like useless uses of semicolons.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/functional/resource/registry_spec.rb | 6 | ||||
-rw-r--r-- | spec/unit/provider/service/macosx_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/resource_reporter_spec.rb | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/spec/functional/resource/registry_spec.rb b/spec/functional/resource/registry_spec.rb index a7748fa4e7..5c97626c78 100644 --- a/spec/functional/resource/registry_spec.rb +++ b/spec/functional/resource/registry_spec.rb @@ -112,9 +112,9 @@ describe Chef::Resource::RegistryKey, :windows_only, :broken => true do @node.name("windowsbox") @rest_client = double("Chef::ServerAPI (mock)") - allow(@rest_client).to receive(:create_url).and_return("reports/nodes/windowsbox/runs/#{@run_id}"); - allow(@rest_client).to receive(:raw_http_request).and_return({ "result" => "ok" }); - allow(@rest_client).to receive(:post_rest).and_return({ "uri" => "https://example.com/reports/nodes/windowsbox/runs/#{@run_id}" }); + allow(@rest_client).to receive(:create_url).and_return("reports/nodes/windowsbox/runs/#{@run_id}") + allow(@rest_client).to receive(:raw_http_request).and_return({ "result" => "ok" }) + allow(@rest_client).to receive(:post_rest).and_return({ "uri" => "https://example.com/reports/nodes/windowsbox/runs/#{@run_id}" }) @resource_reporter = Chef::ResourceReporter.new(@rest_client) @events.register(@resource_reporter) diff --git a/spec/unit/provider/service/macosx_spec.rb b/spec/unit/provider/service/macosx_spec.rb index 12f97431ba..c9dd629187 100644 --- a/spec/unit/provider/service/macosx_spec.rb +++ b/spec/unit/provider/service/macosx_spec.rb @@ -322,7 +322,7 @@ SVC_LIST it "stops and then starts service" do expect(provider).to receive(:unload_service) - expect(provider).to receive(:load_service); + expect(provider).to receive(:load_service) provider.restart_service end diff --git a/spec/unit/resource_reporter_spec.rb b/spec/unit/resource_reporter_spec.rb index 51075a7d44..f951c62b94 100644 --- a/spec/unit/resource_reporter_spec.rb +++ b/spec/unit/resource_reporter_spec.rb @@ -92,8 +92,8 @@ describe Chef::ResourceReporter do context "when chef fails" do before do - allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" }); - allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" }); + allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" }) + allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" }) end @@ -259,8 +259,8 @@ describe Chef::ResourceReporter do describe "when generating a report for the server" do before do - allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" }); - allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" }); + allow(@rest_client).to receive(:raw_request).and_return({ "result" => "ok" }) + allow(@rest_client).to receive(:post).and_return({ "uri" => "https://example.com/reports/nodes/spitfire/runs/#{@run_id}" }) @resource_reporter.run_started(@run_status) end |