Skip to content

Commit

Permalink
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/async_spec.rb
Original file line number Diff line number Diff line change
@@ -26,4 +26,14 @@
run_async { obj.should == [1, 2, 3, 4] }
end
end

async "should make example fail before async block reached" do
expect {
expect(:foo).to eq(:baz)
}.to raise_error(Exception)

set_timeout(0) do
run_async { expect(42).to eq(42) }
end
end
end

0 comments on commit 03f5d2e

Please sign in to comment.