]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/redactions_controller_test.rb
Revert "Added a greeting to the changeset comment message"
[rails.git] / test / controllers / redactions_controller_test.rb
index 1df2a6dff9e8e613fadb8569843874c229cf7913..3d71012b31df8559858f7f66537d0cea1724ac17 100644 (file)
@@ -73,7 +73,7 @@ class RedactionsControllerTest < ActionController::TestCase
 
     post :create, :redaction => { :title => "Foo", :description => "Description here." }
     assert_response :redirect
-    assert_redirected_to(redaction_path(Redaction.find_by_title("Foo")))
+    assert_redirected_to(redaction_path(Redaction.find_by(:title => "Foo")))
   end
 
   def test_create_moderator_invalid