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:
parent
325c9d5e52
commit
84908bbde9
1 changed files with 0 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue