summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/authentication_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/api_test/authentication_test.rb')
-rw-r--r--test/integration/api_test/authentication_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/authentication_test.rb b/test/integration/api_test/authentication_test.rb
index f7a791c77..da6640dfa 100644
--- a/test/integration/api_test/authentication_test.rb
+++ b/test/integration/api_test/authentication_test.rb
@@ -112,7 +112,7 @@ class Redmine::ApiTest::AuthenticationTest < Redmine::ApiTest::Base
end
def test_invalid_utf8_credentials_should_not_trigger_an_error
- invalid_utf8 = "\x82".force_encoding('UTF-8')
+ invalid_utf8 = "\x82"
assert !invalid_utf8.valid_encoding?
assert_nothing_raised do
get '/users/current.xml', :headers => credentials(invalid_utf8, "foo")