Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added clearer instructions to the subject deprecation warning

  • Loading branch information...
commit 9a67805a68ad3086f5e5b3d97bb32a47f22ca12a 1 parent efff1cc
@jferris jferris authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/shoulda/context.rb
View
3  lib/shoulda/context.rb
@@ -248,7 +248,8 @@ def get_instance_of(object_or_klass) # :nodoc:
if instance = instance_variable_get(ivar)
warn "[WARNING] Using #{ivar} as the subject. Future versions " <<
"of Shoulda will require an explicit subject using the " <<
- "subject class method."
+ "subject class method. Add this after your setup to avoid " <<
+ "this warning: subject { #{ivar} }"
instance
else
klass.new
Please sign in to comment.
Something went wrong with that request. Please try again.