Skip to content

Commit

Permalink
Stop checking exception message
Browse files Browse the repository at this point in the history
This seems unnecessary given we look for the exception type.

The reason I'm doing this is the message changed in Ruby 3.4.
  • Loading branch information
horgh committed Dec 26, 2024
1 parent c8d80fd commit 0264150
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,9 @@ def test_metadata_unknown_attribute
reader = MaxMind::DB.new(
'test/data/test-data/MaxMind-DB-test-decoder.mmdb'
)
e = assert_raises NoMethodError do
assert_raises NoMethodError do
reader.metadata.what
end
assert(e.message.include?('undefined method `what\''))
reader.close
end

Expand Down

0 comments on commit 0264150

Please sign in to comment.