Open
Description
The first time around all of my tests pass. The second time around I have failures related to ActiveRecord equality comparisons.
This fails for example
User.deactivated.should include(user)
Taking a closer look:
user.class # => User(id: integer, email: string, encrypted_password: string, .........)
user.instance_of?(user.class) # => true
User.deactivated.first.class # => User(id: integer, email: string, encrypted_password: string, .........)
User.deactivated.instance_of(user.class) # => false
u = User.new
u.instance_of?(user.class) # => false
u.instance_of?(User.deactivated.class) # => true
I think this issue may be related to #31
/cc @nilbus
Metadata
Metadata
Assignees
Labels
No labels