diff options
-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) |