diff options
-rw-r--r-- | spec/unit/dsl/plugin_spec.rb | 6 | ||||
-rw-r--r-- | spec/unit/runner_spec.rb | 14 | ||||
-rw-r--r-- | spec/unit/system_spec.rb | 10 | ||||
-rw-r--r-- | spec/unit/util/file_helper_spec.rb | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/spec/unit/dsl/plugin_spec.rb b/spec/unit/dsl/plugin_spec.rb index a88f44d0..558d661a 100644 --- a/spec/unit/dsl/plugin_spec.rb +++ b/spec/unit/dsl/plugin_spec.rb @@ -22,7 +22,7 @@ require File.expand_path("../../../spec_helper.rb", __FILE__) shared_examples "Ohai::DSL::Plugin" do context "#initialize" do it "should set has_run? to false" do - plugin.has_run?.should be_false + plugin.has_run?.should be false end it "should set the correct plugin version" do @@ -48,7 +48,7 @@ shared_examples "Ohai::DSL::Plugin" do it "should set has_run? to true" do plugin.run - plugin.has_run?.should be_true + plugin.has_run?.should be true end end @@ -69,7 +69,7 @@ shared_examples "Ohai::DSL::Plugin" do it "should set has_run? to true" do plugin.run - plugin.has_run?.should be_true + plugin.has_run?.should be true end end end diff --git a/spec/unit/runner_spec.rb b/spec/unit/runner_spec.rb index b6d11fa1..1fe20661 100644 --- a/spec/unit/runner_spec.rb +++ b/spec/unit/runner_spec.rb @@ -113,7 +113,7 @@ describe Ohai::Runner, "run_plugin" do it "should run the plugin" do @runner.run_plugin(plugin) - plugin.has_run?.should be_true + plugin.has_run?.should be true end it "should add plugin data to Ohai::System.data" do @@ -142,7 +142,7 @@ describe Ohai::Runner, "run_plugin" do it "should not run the plugin" do expect{ @runner.run_plugin(@plugin) }.to raise_error - @plugin.has_run?.should be_false + @plugin.has_run?.should be false end end @@ -174,7 +174,7 @@ describe Ohai::Runner, "run_plugin" do it "should run the plugins" do @runner.run_plugin(@plugin2) @plugins.each do |plugin| - plugin.has_run?.should be_true + plugin.has_run?.should be true end end end @@ -208,7 +208,7 @@ describe Ohai::Runner, "run_plugin" do it "should run the plugins" do @runner.run_plugin(@plugin3) @plugins.each do |plugin| - plugin.has_run?.should be_true + plugin.has_run?.should be true end end end @@ -251,7 +251,7 @@ describe Ohai::Runner, "run_plugin" do it "should run the plugins" do @runner.run_plugin(@plugin3) @plugins.each do |plugin| - plugin.has_run?.should be_true + plugin.has_run?.should be true end end end @@ -350,7 +350,7 @@ describe Ohai::Runner, "run_plugin" do @runner.run_plugin(@pluginA) @plugins.each do |plugin| - plugin.has_run?.should be_true + plugin.has_run?.should be true end end @@ -363,7 +363,7 @@ describe Ohai::Runner, "run_plugin" do @runner.run_plugin(@pluginA) @plugins.each do |plugin| - plugin.has_run?.should be_true + plugin.has_run?.should be true end end end diff --git a/spec/unit/system_spec.rb b/spec/unit/system_spec.rb index d452447a..cd729410 100644 --- a/spec/unit/system_spec.rb +++ b/spec/unit/system_spec.rb @@ -210,20 +210,20 @@ EOF # least code complexity in legacy v6 plugin format support. Once we # ship 7.0, though, we need to stick to the same behavior. it "runs v6 plugins" do - expect(v6_plugin.has_run?).to be_true + expect(v6_plugin.has_run?).to be true end it "runs plugins that provide the requested attributes" do - expect(primary_plugin.has_run?).to be_true + expect(primary_plugin.has_run?).to be true end it "runs dependencies of plugins that provide requested attributes" do - expect(dependency_plugin_one.has_run?).to be_true - expect(dependency_plugin_two.has_run?).to be_true + expect(dependency_plugin_one.has_run?).to be true + expect(dependency_plugin_two.has_run?).to be true end it "does not run plugins that are irrelevant to the requested attributes" do - expect(unrelated_plugin.has_run?).to be_false + expect(unrelated_plugin.has_run?).to be false end end diff --git a/spec/unit/util/file_helper_spec.rb b/spec/unit/util/file_helper_spec.rb index 5c6cf7f6..2838ff5c 100644 --- a/spec/unit/util/file_helper_spec.rb +++ b/spec/unit/util/file_helper_spec.rb @@ -39,7 +39,7 @@ describe "Ohai::Util::FileHelper" do end it "returns false if the executable is not in the path" do - expect(file_helper.which('the_cake')).to be_false + expect(file_helper.which('the_cake')).to be false end end end |