summaryrefslogtreecommitdiffstats
path: root/test/functional/my_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 18:26:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 18:26:10 +0000
commit7e5bad993de613e5618a651a0f822f5e4fa0d941 (patch)
tree4c118ea12135887ff14a4917b21347a14f6e37fe /test/functional/my_controller_test.rb
parentc9a46950de1bbcd7e4b326dcc619ffacd4cac713 (diff)
downloadredmine-7e5bad993de613e5618a651a0f822f5e4fa0d941.tar.gz
redmine-7e5bad993de613e5618a651a0f822f5e4fa0d941.zip
Removes most of the ajax stuff on my page layout.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10033 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/my_controller_test.rb')
-rw-r--r--test/functional/my_controller_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb
index d7364dfa8..a543189ed 100644
--- a/test/functional/my_controller_test.rb
+++ b/test/functional/my_controller_test.rb
@@ -182,14 +182,14 @@ class MyControllerTest < ActionController::TestCase
end
def test_add_block
- xhr :post, :add_block, :block => 'issuesreportedbyme'
- assert_response :success
+ post :add_block, :block => 'issuesreportedbyme'
+ assert_redirected_to '/my/page_layout'
assert User.find(2).pref[:my_page_layout]['top'].include?('issuesreportedbyme')
end
def test_remove_block
- xhr :post, :remove_block, :block => 'issuesassignedtome'
- assert_response :success
+ post :remove_block, :block => 'issuesassignedtome'
+ assert_redirected_to '/my/page_layout'
assert !User.find(2).pref[:my_page_layout].values.flatten.include?('issuesassignedtome')
end