aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/test_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/test/template/test_test.rb')
-rw-r--r--actionview/test/template/test_test.rb2
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"