diff options
Diffstat (limited to 'spec/unit/plugins/aix/os_spec.rb')
-rw-r--r-- | spec/unit/plugins/aix/os_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/plugins/aix/os_spec.rb b/spec/unit/plugins/aix/os_spec.rb index 6cc2227d..ded3335f 100644 --- a/spec/unit/plugins/aix/os_spec.rb +++ b/spec/unit/plugins/aix/os_spec.rb @@ -18,18 +18,18 @@ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb") describe Ohai::System, "AIX os plugin" do - before(:each) do + before do @plugin = get_plugin("aix/os") allow(@plugin).to receive(:collect_os).and_return(:aix) allow(@plugin).to receive(:shell_out).with("oslevel -s").and_return(mock_shell_out(0, "7200-00-01-1543\n", nil)) @plugin.run end - it "should set the top-level os attribute" do - expect(@plugin[:os]).to eql(:aix) + it "sets the top-level os attribute" do + expect(@plugin[:os]).to be(:aix) end - it "should set the top-level os_level attribute" do + it "sets the top-level os_level attribute" do expect(@plugin[:os_version]).to eql("7200-00-01-1543") end end |