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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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$/)}