Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Jan 23, 2024
1 parent 8b16de1 commit 3e475c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/net_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ def test_encoding

# Test with a different encoding
t2 = t2.encode('windows-1252')
assert_equal('Windows-1252', t2.encoding_to_s)
assert_equal('Windows-1252', t2.encoding.to_s)
assert_not_equal(t1, t2)
assert_equal(t1, MiGA::MiGA.normalize_encoding(t2))

# Test with a different encoding wrongly declared
t2.force_encoding('utf-8')
assert_equal('UTF-8', t2.encoding_to_s)
assert_equal('UTF-8', t2.encoding.to_s)
assert_not_equal(t1, t2)
assert_equal(t1, MiGA::MiGA.normalize_encoding(t2))
end
Expand Down

0 comments on commit 3e475c8

Please sign in to comment.