diff options
author | Coraline Ada Ehmke + Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-05 17:23:10 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-12 15:54:43 -0700 |
commit | b89dcde82253089da5378272af2fd58c05ec57cd (patch) | |
tree | 5109343b808e56b7239a7ce46fc4c78a70904286 /actionview | |
parent | 7b9964c2ad2945be417179bfd73e67a45a263664 (diff) | |
download | rails-b89dcde82253089da5378272af2fd58c05ec57cd.tar.gz rails-b89dcde82253089da5378272af2fd58c05ec57cd.tar.bz2 rails-b89dcde82253089da5378272af2fd58c05ec57cd.zip |
simplified route method name generation
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/test_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionview/test/template/test_test.rb b/actionview/test/template/test_test.rb index 5721ee6c6f..88bac85039 100644 --- a/actionview/test/template/test_test.rb +++ b/actionview/test/template/test_test.rb @@ -39,6 +39,8 @@ class PeopleHelperTest < ActionView::TestCase with_test_route_set do person = Struct.new(:name) { extend ActiveModel::Naming + def to_model; self; end + def persisted?; true; end def self.name; 'Mocha::Mock'; end }.new "David" |