1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix bad merge

This commit is contained in:
Aaron Patterson 2014-05-12 18:08:41 -07:00
parent 325c9d5e52
commit 84908bbde9

View file

@ -242,21 +242,6 @@ class PolymorphicRoutesTest < ActionController::TestCase
end
end
def test_new_record_arguments
params = nil
extend Module.new {
define_method("projects_url") { |*args|
params = args
super(*args)
}
}
with_test_routes do
assert_equal "http://example.com/projects", polymorphic_url(@project)
assert_equal [], params
end
end
def test_with_destroyed_record
with_test_routes do
@project.destroy