diff options
author | Tim Smith <tsmith84@gmail.com> | 2016-04-13 10:25:29 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2016-04-13 10:25:29 -0700 |
commit | 772d3ba46a6403674a44b5f35796e1aadd4fbbc8 (patch) | |
tree | ca86a1f431723c348878f1ee4bdba24e1f2e8dc3 | |
parent | 87d9240026ee3d2403a020ef5c6012c4e8c87e5d (diff) | |
download | ohai-772d3ba46a6403674a44b5f35796e1aadd4fbbc8.tar.gz |
Remove a few more shouldshint_logging
-rw-r--r-- | spec/unit/plugins/digital_ocean_spec.rb | 6 | ||||
-rw-r--r-- | spec/unit/plugins/gce_spec.rb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/plugins/digital_ocean_spec.rb b/spec/unit/plugins/digital_ocean_spec.rb index d5050a07..64374755 100644 --- a/spec/unit/plugins/digital_ocean_spec.rb +++ b/spec/unit/plugins/digital_ocean_spec.rb @@ -118,7 +118,7 @@ describe Ohai::System, "plugin digital_ocean" do end context "without private networking enabled" do - it_should_behave_like "digital_ocean" + it_behaves_like "digital_ocean" end context "with private networking enabled" do @@ -162,14 +162,14 @@ describe Ohai::System, "plugin digital_ocean" do allow(File).to receive(:exist?).with(digitalocean_path).and_return(true) plugin.run end - it_should_behave_like "digital_ocean_networking" + it_behaves_like "digital_ocean_networking" end describe "without the /etc/digitalocean file" do before do allow(File).to receive(:exist?).with(digitalocean_path).and_return(false) end - it_should_behave_like "!digital_ocean" + it_behaves_like "!digital_ocean" end end end diff --git a/spec/unit/plugins/gce_spec.rb b/spec/unit/plugins/gce_spec.rb index 03101852..a30b232d 100644 --- a/spec/unit/plugins/gce_spec.rb +++ b/spec/unit/plugins/gce_spec.rb @@ -54,7 +54,7 @@ describe Ohai::System, "plugin gce" do end describe "with hint file and with metadata connection" do - it_should_behave_like "gce" + it_behaves_like "gce" before(:each) do allow(plugin).to receive(:hint?).with("gce").and_return({}) @@ -62,7 +62,7 @@ describe Ohai::System, "plugin gce" do end describe "without hint file and without metadata connection" do - it_should_behave_like "!gce" + it_behaves_like "!gce" before(:each) do allow(plugin).to receive(:hint?).with("gce").and_return(false) |