search for: valid_valu

Displaying 1 result from an estimated 1 matches for "valid_valu".

Did you mean: valid_val
2011 Sep 04
3
rspec assert inclusion in..
hello, I would like to assert that an attribute of a model has value among those in an array. How would I do it in rspec? Something like this... describe OptionType do context "shoulda validations" do it { assert_contains :type, [''Type1'', ''Type1'']} end end