[rspec-users] rspec assert inclusion in..

Nick nick at deadorange.com
Sat Sep 3 21:42:58 EDT 2011


Hey Slavix. How about this:

it 'has a valid "attribute_x" value' do
  valid_values = %w(some values here)
  valid_values.should include subject.attribute_x
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110903/56b09c60/attachment.html>


More information about the rspec-users mailing list