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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to