]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/message_controller_test.rb
Error if geocoder#search is called with no arguments
[rails.git] / test / controllers / message_controller_test.rb
index eb4222bd5c9943c4a086786134546dc1cf5d65cc..427519c3220a0fbd1acf4b83302f3ac071e5b3f4 100644 (file)
@@ -366,8 +366,8 @@ class MessageControllerTest < ActionController::TestCase
     assert_equal false, m.to_user_visible
 
     # Check that the deleting a sent message works
-    post :delete, :message_id => messages(:unread_message).id
-    assert_redirected_to inbox_path(:display_name => users(:normal_user).display_name)
+    post :delete, :message_id => messages(:unread_message).id, :referer => outbox_path(:display_name => users(:normal_user).display_name)
+    assert_redirected_to outbox_path(:display_name => users(:normal_user).display_name)
     assert_equal "Message deleted", flash[:notice]
     m = Message.find(messages(:unread_message).id)
     assert_equal false, m.from_user_visible