From b89dcde82253089da5378272af2fd58c05ec57cd Mon Sep 17 00:00:00 2001 From: Coraline Ada Ehmke + Aaron Patterson Date: Mon, 5 May 2014 17:23:10 -0700 Subject: simplified route method name generation --- actionview/test/template/test_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionview') 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" -- cgit v1.2.3