Skip to content

Commit

Permalink
Fix listen tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Nov 25, 2014
1 parent 4c003d3 commit 551a615
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/sass/compiler_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ def start!

# used for Listen >= 2.0
def start
@thread = Thread.new {@run_during_start.call(self) if @run_during_start}
parent = Thread.current
@thread = Thread.new do
@run_during_start.call(self) if @run_during_start
parent.raise Interrupt
end
end

def stop
Expand Down

0 comments on commit 551a615

Please sign in to comment.