diff options
Diffstat (limited to 'test/functional/my_controller_test.rb')
-rw-r--r-- | test/functional/my_controller_test.rb | 8 |
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 |