X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c0e4394a486002a3d4283200a8a1ed20c0f134f8..e23541c20f9e2a74cc190c2a9e7c0b79562fe650:/test/controllers/redactions_controller_test.rb diff --git a/test/controllers/redactions_controller_test.rb b/test/controllers/redactions_controller_test.rb index 1df2a6dff..3d71012b3 100644 --- a/test/controllers/redactions_controller_test.rb +++ b/test/controllers/redactions_controller_test.rb @@ -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