spec/unit/provider/service/upstart_service_spec.rb in chef-10.26.0 vs spec/unit/provider/service/upstart_service_spec.rb in chef-10.28.0.rc.0
- old
+ new
@@ -95,11 +95,11 @@
describe "when the status command uses the new format" do
before do
end
- it "should set running to true if the the status command returns 0" do
+ it "should set running to true if the status command returns 0" do
@stdout = StringIO.new("rsyslog start/running")
@provider.stub!(:popen4).and_yield(@pid, @stdin, @stdout, @stderr).and_return(@status)
@provider.load_current_resource
@current_resource.running.should be_true
end
@@ -111,10 +111,10 @@
@current_resource.running.should be_false
end
end
describe "when the status command uses the old format" do
- it "should set running to true if the the status command returns 0" do
+ it "should set running to true if the status command returns 0" do
@stdout = StringIO.new("rsyslog (start) running, process 32225")
@provider.stub!(:popen4).and_yield(@pid, @stdin, @stdout, @stderr).and_return(@status)
@provider.load_current_resource
@current_resource.running.should be_true
end