summaryrefslogtreecommitdiffstats
path: root/test/functional/issue_statuses_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-22 22:04:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-22 22:04:07 +0000
commit68f3e91bd7030c7ac0a33bb0bfa36b30a3645d32 (patch)
tree8ce266a8db5e8be17e8013db3f1098354d4b9d9a /test/functional/issue_statuses_controller_test.rb
parent35e8f0d25d97622034dcebcec0524ceff708bf12 (diff)
downloadredmine-68f3e91bd7030c7ac0a33bb0bfa36b30a3645d32.tar.gz
redmine-68f3e91bd7030c7ac0a33bb0bfa36b30a3645d32.zip
Resourcified issue statuses.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7890 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issue_statuses_controller_test.rb')
-rw-r--r--test/functional/issue_statuses_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index d49232605..478e14272 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -56,7 +56,7 @@ class IssueStatusesControllerTest < ActionController::TestCase
end
def test_update
- post :update, :id => '3', :issue_status => {:name => 'Renamed status'}
+ put :update, :id => '3', :issue_status => {:name => 'Renamed status'}
assert_redirected_to :action => 'index'
status = IssueStatus.find(3)
assert_equal 'Renamed status', status.name
@@ -66,7 +66,7 @@ class IssueStatusesControllerTest < ActionController::TestCase
Issue.delete_all("status_id = 1")
assert_difference 'IssueStatus.count', -1 do
- post :destroy, :id => '1'
+ delete :destroy, :id => '1'
end
assert_redirected_to :action => 'index'
assert_nil IssueStatus.find_by_id(1)
@@ -76,7 +76,7 @@ class IssueStatusesControllerTest < ActionController::TestCase
assert_not_nil Issue.find_by_status_id(1)
assert_no_difference 'IssueStatus.count' do
- post :destroy, :id => '1'
+ delete :destroy, :id => '1'
end
assert_redirected_to :action => 'index'
assert_not_nil IssueStatus.find_by_id(1)