Displaying 1 result from an estimated 1 matches for "is_at_least".
2013 Sep 07
0
[shoulda-matchers gem] validate_numericality_of_matcher strange behaviour
...;spec_helper''
describe Vacancy do
[:name, :salary, :position, :description, :company, :contact,
:location].each do
|value| it { should validate_presence_of(value) }
end
[:name, :position, :company, :contact, :location].each do
|value| it { should
ensure_length_of(value).is_at_least(3).is_at_most(50) }
end
it { should ensure_length_of(:description).is_at_least(3).is_at_most(250)
}
it { should validate_numericality_of(:salary).is_greater_than(2) }
end
----------------------------------
Console output: (I''m running the same spec)
~/ror/test_app2$ rspec spec/mo...