diff options
Diffstat (limited to 'test/integration/api_test/roles_test.rb')
-rw-r--r-- | test/integration/api_test/roles_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/api_test/roles_test.rb b/test/integration/api_test/roles_test.rb index dc2275c08..128882c67 100644 --- a/test/integration/api_test/roles_test.rb +++ b/test/integration/api_test/roles_test.rb @@ -26,7 +26,7 @@ class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base get '/roles.xml' assert_response :success - assert_equal 'application/xml', @response.content_type + assert_equal 'application/xml', @response.media_type assert_select 'roles role', 3 assert_select 'roles[type=array] role id', :text => '2' do @@ -38,7 +38,7 @@ class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base get '/roles.json' assert_response :success - 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 @@ -51,7 +51,7 @@ class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base get '/roles/1.xml' assert_response :success - assert_equal 'application/xml', @response.content_type + assert_equal 'application/xml', @response.media_type assert_select 'role' do assert_select 'name', :text => 'Manager' |