Skip to content

Commit

Permalink
Remove alias for assert_not_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
paarthmadan committed Dec 14, 2021
1 parent 3556834 commit 49a212f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/backend/transliterator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def setup
test "default transliterator fails with custom rules with uncomposed input" do
char = [117, 776].pack("U*") # "ü" as ASCII "u" plus COMBINING DIAERESIS
transliterator = I18n::Backend::Transliterator.get(@hash)
assert_not_equal "ue", transliterator.transliterate(char)
refute_equal "ue", transliterator.transliterate(char)
end

test "DEFAULT_APPROXIMATIONS is frozen to prevent concurrency issues" do
Expand Down
2 changes: 1 addition & 1 deletion test/i18n/middleware_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setup
@middleware.call({})

updated_i18n_config_object_id = Thread.current[:i18n_config].object_id
assert_not_equal updated_i18n_config_object_id, old_i18n_config_object_id
refute_equal updated_i18n_config_object_id, old_i18n_config_object_id
end

test "succesfully resets i18n locale to default locale by defining new config" do
Expand Down
2 changes: 0 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

# TODO: Remove these aliases and update tests accordingly.
class TEST_CASE
alias :assert_not_equal :refute_equal

def assert_nothing_raised(*args)
yield
end
Expand Down

0 comments on commit 49a212f

Please sign in to comment.