spec/theatre/invocation_spec.rb in adhearsion-1.2.5 vs spec/theatre/invocation_spec.rb in adhearsion-1.2.6
- old
+ new
@@ -124,14 +124,12 @@
it "should set the #finished_time property when a failure was encountered" do
invocation = Theatre::Invocation.new('/foo/bar', lambda { raise LocalJumpError })
invocation.queued
- now = Time.now
- flexmock(Time).should_receive(:now).twice.and_return now
-
invocation.start
invocation.should be_error
+ invocation.finished_time.should be_kind_of(Time)
end
it "should set the #started_time property after starting" do
invocation = Theatre::Invocation.new('/foo/bar', lambda { sleep 0.01 } )
invocation.queued