You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes, I did a quick patch to work, you can check my git pull request, however ideally it should work in any enumerable so maybe with some syntax sugar we could do something like
it { should ensure_inclusion_of(:attr).in_enumerable ()
Hi,
I have a validation like
validates :boolean_field, :inclusion => { :in=>[true, false] }
it would be great to do something like:
it { should ensure_inclusion_of(:boolean_field).in_array [true,false] }
The text was updated successfully, but these errors were encountered: