diff options
Diffstat (limited to 'test/integration/api_test/enumerations_test.rb')
-rw-r--r-- | test/integration/api_test/enumerations_test.rb | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/test/integration/api_test/enumerations_test.rb b/test/integration/api_test/enumerations_test.rb index f1000ffe4..62f64de8c 100644 --- a/test/integration/api_test/enumerations_test.rb +++ b/test/integration/api_test/enumerations_test.rb @@ -24,20 +24,14 @@ class Redmine::ApiTest::EnumerationsTest < Redmine::ApiTest::Base Setting.rest_api_enabled = '1' end - context "/enumerations/issue_priorities" do - context "GET" do - - should "return priorities" do - get '/enumerations/issue_priorities.xml' - - assert_response :success - assert_equal 'application/xml', response.content_type - assert_select 'issue_priorities[type=array]' do - assert_select 'issue_priority' do - assert_select 'id', :text => '6' - assert_select 'name', :text => 'High' - end - end + test "GET /enumerations/issue_priorities.xml should return priorities" do + get '/enumerations/issue_priorities.xml' + assert_response :success + assert_equal 'application/xml', response.content_type + assert_select 'issue_priorities[type=array]' do + assert_select 'issue_priority' do + assert_select 'id', :text => '6' + assert_select 'name', :text => 'High' end end end |