X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5f4b7d3f916e132f860ab12c017aba638556abf8..4028f4cdb91f616bc774dc9b9fa8c7183eb1f6dd:/test/models/user_test.rb diff --git a/test/models/user_test.rb b/test/models/user_test.rb index b3e6eae8f..4a8d9a894 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -199,7 +199,7 @@ class UserTest < ActiveSupport::TestCase assert_equal %w(de fr en), user.languages user.languages = %w(fr de sl) assert_equal "de", user.preferred_language - assert_equal "de", user.preferred_language_from(%w(en sl de es)) + assert_equal %w(fr de sl), user.preferred_languages.map(&:to_s) user = users(:public_user) assert_equal %w(en de), user.languages end