Skip to content

Commit

Permalink
Tests - better testing for Ruby version dependant error message
Browse files Browse the repository at this point in the history
  • Loading branch information
samnung committed Apr 25, 2020
1 parent e7f6017 commit 02c4ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/runtime/errors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

expect do
assert_html('', source, print_error_if_error: false)
end.to raise_error ArgumentError, 'unknown key-value argument `:two` for mixin `abc`'
end.to raise_error(ArgumentError) { |error| expect(error.message).to match /unknown key-value argument `:?two` for mixin `abc`/ }
end

it 'not raises error when calling mixin with empty block' do
Expand Down

0 comments on commit 02c4ccb

Please sign in to comment.