Skip to content

Commit 220bb4b

Browse files
committed
Should use == instead of eql()
1 parent e270529 commit 220bb4b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

chef/spec/unit/provider/service_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
end
9595

9696
describe Chef::Provider::Service, "action_start" do
97-
before(:each) do
97+
before(:each) do
9898
@node = mock("Chef::Node", :null_object => true)
9999
@new_resource = mock("Chef::Resource::Service",
100100
:null_object => true,
@@ -125,7 +125,7 @@
125125
end
126126

127127
describe Chef::Provider::Service, "action_stop" do
128-
before(:each) do
128+
before(:each) do
129129
@node = mock("Chef::Node", :null_object => true)
130130
@new_resource = mock("Chef::Resource::Service",
131131
:null_object => true,

chef/spec/unit/resource/service_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,20 @@
125125

126126
it "should default all the feature support to false" do
127127
support_hash = { :status => false, :restart => false, :reload=> false }
128-
@resource.supports.should eql(support_hash)
128+
@resource.supports.should == support_hash
129129
end
130130

131131
it "should allow you to set what features this resource supports as a array" do
132132
support_array = [ :status, :restart ]
133133
support_hash = { :status => true, :restart => true, :reload => false }
134134
@resource.supports(support_array)
135-
@resource.supports.should eql(support_hash)
135+
@resource.supports.should == support_hash
136136
end
137137

138138
it "should allow you to set what features this resource supports as a hash" do
139139
support_hash = { :status => true, :restart => true, :reload => false }
140140
@resource.supports(support_hash)
141-
@resource.supports.should eql(support_hash)
141+
@resource.supports.should == support_hash
142142
end
143143
end
144144
end

0 commit comments

Comments
 (0)