Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
More debugging silliness
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgreen committed Feb 8, 2014
1 parent 8bf33ec commit d84aac6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/elevate/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def on_start
end

def on_finish
p "on_finish"

@operation.removeObserver(self, forKeyPath: "isFinished")
@active_tasks.delete(self)

Expand All @@ -107,6 +109,8 @@ def on_finish
end

def on_timeout(timer)
p "on_timeout"

@operation.timeout
end

Expand Down
2 changes: 0 additions & 2 deletions spec/elevate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ def initialize
@controller.launch(:timeout_test)

wait 0.5 do
p @controller.invocations
@controller.invocations[:finish].should.not.be.nil
end
end
Expand All @@ -297,7 +296,6 @@ def initialize
@controller.launch(:timeout_test)

wait 0.5 do
p @controller.invocations
@controller.invocations[:timeout].should.not.be.nil
end

Expand Down

0 comments on commit d84aac6

Please sign in to comment.