module Shoulda::ClassMethods
def subject(&block)
should_validate_uniqueness_of :email
# uses the existing user
subject { User.first }
class UserTest < Test::Unit::TestCase
Sets the return value of the subject instance method:
def subject(&block) @subject_block = block end