diff options
Diffstat (limited to 'test/integration/api_test/my_test.rb')
-rw-r--r-- | test/integration/api_test/my_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/api_test/my_test.rb b/test/integration/api_test/my_test.rb index 1749b709a..f53377abd 100644 --- a/test/integration/api_test/my_test.rb +++ b/test/integration/api_test/my_test.rb @@ -27,7 +27,7 @@ class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base get '/my/account.json', :headers => credentials('dlopper', 'foo') assert_response :success - assert_equal 'application/json', response.content_type + assert_equal 'application/json', response.media_type json = ActiveSupport::JSON.decode(response.body) assert json.key?('user') assert_equal 'dlopper', json['user']['login'] @@ -82,7 +82,7 @@ class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base }, :headers => credentials('dlopper', 'foo')) assert_response :unprocessable_entity - assert_equal 'application/xml', @response.content_type + assert_equal 'application/xml', @response.media_type assert_select 'errors error', :text => "First name cannot be blank" end @@ -96,7 +96,7 @@ class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base }, :headers => credentials('dlopper', 'foo')) assert_response :unprocessable_entity - assert_equal 'application/json', @response.content_type + assert_equal 'application/json', @response.media_type json = ActiveSupport::JSON.decode(response.body) assert_kind_of Hash, json assert json.has_key?('errors') |