From 772d3ba46a6403674a44b5f35796e1aadd4fbbc8 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 13 Apr 2016 10:25:29 -0700 Subject: Remove a few more shoulds --- spec/unit/plugins/digital_ocean_spec.rb | 6 +++--- 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) -- cgit v1.2.1