Removed some shoulda context.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11862 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-05-18 08:27:53 +00:00
parent 5b29964512
commit 0d4bb7558f
7 changed files with 403 additions and 527 deletions
@@ -24,28 +24,23 @@ class Redmine::ApiTest::IssueStatusesTest < Redmine::ApiTest::Base
Setting.rest_api_enabled = '1'
end
context "/issue_statuses" do
context "GET" do
test "GET /issue_statuses.xml should return issue statuses" do
get '/issue_statuses.xml'
should "return issue statuses" do
get '/issue_statuses.xml'
assert_response :success
assert_equal 'application/xml', @response.content_type
assert_tag :tag => 'issue_statuses',
:attributes => {:type => 'array'},
:child => {
:tag => 'issue_status',
:child => {
:tag => 'id',
:content => '2',
:sibling => {
:tag => 'name',
:content => 'Assigned'
}
}
assert_response :success
assert_equal 'application/xml', @response.content_type
assert_tag :tag => 'issue_statuses',
:attributes => {:type => 'array'},
:child => {
:tag => 'issue_status',
:child => {
:tag => 'id',
:content => '2',
:sibling => {
:tag => 'name',
:content => 'Assigned'
}
end
end
}
}
end
end