spec/bamboo-client/remote_spec.rb in bamboo-client-0.0.6 vs spec/bamboo-client/remote_spec.rb in bamboo-client-0.0.8
- old
+ new
@@ -212,15 +212,15 @@
it "should have a start time" do
result.start_time.should == Time.parse("2011-01-18 09:55:54")
end
it "returns nil if start time can not be parsed" do
- doc.stub(:css).and_return mock(:text => "foo")
+ doc.stub(:css).and_return mock(:text => "Sun Sep 32")
result.start_time.should be_nil
end
it "returns nil if start time can not be parsed" do
- doc.stub(:css).and_return mock(:text => "foo")
+ doc.stub(:css).and_return mock(:text => "Sun Sep 32")
result.end_time.should be_nil
end
it "should have an end time" do
result.end_time.should == Time.parse("2011-01-18T09:56:40+0100")