Skip to content

Commit

Permalink
AM::Conversion is required for methods such as to_key
Browse files Browse the repository at this point in the history
- Required when we create instance variables in form_for tests.
  • Loading branch information
prathamesh-sonpatki committed Jan 17, 2015
1 parent ccc70e6 commit 60d3f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/support/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60d3f58

Please sign in to comment.