summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@llnw.com>2014-05-07 14:46:02 -0700
committerBryan McLellan <btm@getchef.com>2014-05-15 08:19:47 -0700
commitf376a0dd8bca80df8049257f7b8ad210a8533d17 (patch)
treeec11fec3b26bb9279ca38315d607b04b5af702f0 /spec
parent8f496fc3e312c0eab425299531364ec70bc033ad (diff)
downloadohai-f376a0dd8bca80df8049257f7b8ad210a8533d17.tar.gz
Use equals not be to deal with types
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/plugins/linux/mdadm_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/plugins/linux/mdadm_spec.rb b/spec/unit/plugins/linux/mdadm_spec.rb
index ae4b512b..0f0b1498 100644
--- a/spec/unit/plugins/linux/mdadm_spec.rb
+++ b/spec/unit/plugins/linux/mdadm_spec.rb
@@ -73,7 +73,7 @@ MD
it "should detect raid level" do
@plugin.run
- @plugin[:mdadm][:md0][:level].should be 10
+ @plugin[:mdadm][:md0][:level].should == 10
end
it "should detect raid state" do
@@ -83,19 +83,19 @@ MD
it "should detect raid size" do
@plugin.run
- @plugin[:mdadm][:md0][:size].should be 2794.16
+ @plugin[:mdadm][:md0][:size].should == 2794.16
end
it "should detect raid metadata level" do
@plugin.run
- @plugin[:mdadm][:md0][:version].should be 1.2
+ @plugin[:mdadm][:md0][:version].should == 1.2
end
device_counts = { :raid => 6, :total => 6, :active => 6, :working => 6, :failed => 0, :spare => 0 }
device_counts.each_pair do |item, expected_value|
it "should detect device count of \"#{item}\"" do
@plugin.run
- @plugin[:mdadm][:md0][:device_counts][item].should be expected_value
+ @plugin[:mdadm][:md0][:device_counts][item].should == expected_value
end
end