Skip to content

Commit

Permalink
Merge pull request #757 from chuckremes/master
Browse files Browse the repository at this point in the history
parameterize error message so old and new Rubies match text
  • Loading branch information
tarcieri committed Apr 19, 2017
2 parents 96fdf84 + 6eab03e commit 8d7acc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/shared/actor_examples.rb
Expand Up @@ -467,10 +467,11 @@ def name_inside_task
end

it "crashes the sender if we pass neither String nor Exception" do
number = 10
allow(logger).to receive(:crash).with("Actor crashed!", TypeError)
expect do
actor.crash_with_abort_raw 10
end.to raise_exception(TypeError, "Exception object/String expected, but Fixnum received")
actor.crash_with_abort_raw number
end.to raise_exception(TypeError, "Exception object/String expected, but #{number.class} received")

Specs.sleep_and_wait_until { !actor.alive? }
expect(actor).not_to be_alive
Expand Down

0 comments on commit 8d7acc2

Please sign in to comment.