##// END OF EJS Templates
scm: mercurial: split test_copied_files to sub method (#14361)...
scm: mercurial: split test_copied_files to sub method (#14361) git-svn-id: http://svn.redmine.org/redmine/trunk@12769 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12461:35cc911192e0
r12494:4bde749d4021
Show More
issue_statuses_test.rb
46 lines | 1.5 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Adds API response to /issue_statuses to get the list of all available statuses (#7180)....
r7758 # Redmine - project management software
Toshi MARUYAMA
update copyright year (#15977)...
r12461 # Copyright (C) 2006-2014 Jean-Philippe Lang
Jean-Philippe Lang
Adds API response to /issue_statuses to get the list of all available statuses (#7180)....
r7758 #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require File.expand_path('../../../test_helper', __FILE__)
Jean-Philippe Lang
Adds a subclass of ActionDispatch::IntegrationTest for API tests....
r11023 class Redmine::ApiTest::IssueStatusesTest < Redmine::ApiTest::Base
Jean-Philippe Lang
Adds API response to /issue_statuses to get the list of all available statuses (#7180)....
r7758 fixtures :issue_statuses
def setup
Setting.rest_api_enabled = '1'
end
Jean-Philippe Lang
Removed some shoulda context....
r11632 test "GET /issue_statuses.xml should return issue statuses" do
get '/issue_statuses.xml'
Jean-Philippe Lang
Adds API response to /issue_statuses to get the list of all available statuses (#7180)....
r7758
Jean-Philippe Lang
Removed some shoulda context....
r11632 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'
Jean-Philippe Lang
Adds API response to /issue_statuses to get the list of all available statuses (#7180)....
r7758 }
Jean-Philippe Lang
Removed some shoulda context....
r11632 }
}
Jean-Philippe Lang
Adds API response to /issue_statuses to get the list of all available statuses (#7180)....
r7758 end
end