diff options
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/template/prototype_helper_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 0d054e2b63..0ee8c41d1b 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -601,11 +601,11 @@ class FormHelperTest < Test::Unit::TestCase protected - def polymorphic_path(record, url_writer) + def polymorphic_path(record) if record.new_record? "/posts" else "/posts/#{record.id}" end end -end
\ No newline at end of file +end diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index 2be2c6f17e..6158584e9d 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -214,7 +214,7 @@ class PrototypeHelperTest < Test::Unit::TestCase "/authors" end - def polymorphic_path(record, url_writer) + def polymorphic_path(record) if record.new_record? "/authors" else |