diff options
Diffstat (limited to 'test/integration/api_test/disabled_rest_api_test.rb')
-rw-r--r-- | test/integration/api_test/disabled_rest_api_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/api_test/disabled_rest_api_test.rb b/test/integration/api_test/disabled_rest_api_test.rb index 224820696..7313c0e0e 100644 --- a/test/integration/api_test/disabled_rest_api_test.rb +++ b/test/integration/api_test/disabled_rest_api_test.rb @@ -54,11 +54,11 @@ class Redmine::ApiTest::DisabledRestApiTest < Redmine::ApiTest::Base user.password = 'my_password' end - get "/news.xml", nil, credentials(@user.login, 'my_password') + get "/news.xml", :headers => credentials(@user.login, 'my_password') assert_response :unauthorized assert_equal User.anonymous, User.current - get "/news.json", nil, credentials(@user.login, 'my_password') + get "/news.json", :headers => credentials(@user.login, 'my_password') assert_response :unauthorized assert_equal User.anonymous, User.current end @@ -67,11 +67,11 @@ class Redmine::ApiTest::DisabledRestApiTest < Redmine::ApiTest::Base @user = User.generate! @token = Token.create!(:user => @user, :action => 'api') - get "/news.xml", nil, credentials(@token.value, 'X') + get "/news.xml", :headers => credentials(@token.value, 'X') assert_response :unauthorized assert_equal User.anonymous, User.current - get "/news.json", nil, credentials(@token.value, 'X') + get "/news.json", :headers => credentials(@token.value, 'X') assert_response :unauthorized assert_equal User.anonymous, User.current end |