Unexpected passing spec with validate_inclusion_of

7 views
Skip to first unread message

ericindc

unread,
Nov 14, 2009, 12:38:57 PM11/14/09
to Remarkable
I have the following in one of my specs and it passes without having
ever added the corresponding validate_inclusion_of in my model. Am I
doing something wrong? Or why is this passing? I see it specifically
say "should ensure inclusion of captcha in 14". Thanks.

it { should validate_inclusion_of(:captcha, :in =>
[Date.today.day], :message => /You must provide the correct spam check
response$/)}
Reply all
Reply to author
Forward
0 new messages