spec/operation_spec.rb in elevate-0.4.0 vs spec/operation_spec.rb in elevate-0.5.0
- old
+ new
@@ -11,23 +11,23 @@
it "subclasses NSOperation" do
@operation.class.ancestors.should.include NSOperation
end
- describe "#on_finished" do
+ describe "#on_finish=" do
it "invokes it after #on_started" do
@lock = NSLock.alloc.init
@value = []
- @operation.on_started = lambda do
+ @operation.on_start = lambda do
@lock.lock()
if @value == []
@value << 1
end
@lock.unlock()
end
- @operation.on_finished = lambda do |result, exception|
+ @operation.on_finish = lambda do |result, exception|
@lock.lock()
if @value == [1]
@value << 2
end
@lock.unlock()