Skip to content

Commit

Permalink
Fix test failure on rubinius-3
Browse files Browse the repository at this point in the history
Looks like the expected exception message on NoMethodError was too specific
and didn't match the variation that Rubinius 3 provides.

See: https://travis-ci.org/ms-ati/docile/jobs/544872700#L569
  • Loading branch information
ms-ati committed Jun 12, 2019
1 parent 9362d1a commit 77d58e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/docile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def save_factorial(i)

it "raises NoMethodError" do
expect { subject.call(5) }.
to raise_error(NoMethodError, /undefined method `at' /)
to raise_error(NoMethodError, /method `at' /)
end

it "removes fallback instrumentation from the DSL object after block" do
Expand Down

0 comments on commit 77d58e3

Please sign in to comment.