Mercurial > hg > soundsoftware-site
comparison test/integration/api_test/issue_categories_test.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
49 post '/projects/1/issue_categories.xml', {:issue_category => {:name => 'API'}}, credentials('jsmith') | 49 post '/projects/1/issue_categories.xml', {:issue_category => {:name => 'API'}}, credentials('jsmith') |
50 end | 50 end |
51 assert_response :created | 51 assert_response :created |
52 assert_equal 'application/xml', @response.content_type | 52 assert_equal 'application/xml', @response.content_type |
53 | 53 |
54 category = IssueCategory.first(:order => 'id DESC') | 54 category = IssueCategory.order('id DESC').first |
55 assert_equal 'API', category.name | 55 assert_equal 'API', category.name |
56 assert_equal 1, category.project_id | 56 assert_equal 1, category.project_id |
57 end | 57 end |
58 | 58 |
59 test "POST /projects/:project_id/issue_categories.xml with invalid parameters should return errors" do | 59 test "POST /projects/:project_id/issue_categories.xml with invalid parameters should return errors" do |