From 60d3f58c1fc8b6bbb78ed36ba9b4d40da0a418c3 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Sat, 17 Jan 2015 16:25:41 +0530 Subject: [PATCH] AM::Conversion is required for methods such as to_key - Required when we create instance variables in form_for tests. --- test/support/person.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/support/person.rb b/test/support/person.rb index 9533960..3cb4d57 100644 --- a/test/support/person.rb +++ b/test/support/person.rb @@ -6,6 +6,8 @@ class Person class ValidatingPerson < Person include ActiveModel::Validations + include ActiveModel::Conversion + validates :name, presence: true validates :email, presence: true validates :password, presence: true