Thanks. I wanted to test it as part of model validation like
it { should validate_presence_of(:some_attribute).among(['value1',
'value2']) }
it { should validate_that(:some_attribute) >= 0 }
On Sep 3, 6:42 pm, Nick <[email protected]> wrote:
> 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
>
> _______________________________________________
> rspec-users mailing list
> [email protected]http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users