Sha256: 7e06dfb5259aa033ce7b695525fd817811e74fb01963d885f6f9db5f9fa692e2
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
require 'spec_helper' describe 'test that config/locales/en.yml is being loaded' do it { I18n.t(:'errors.messages.must_be_blank').should == 'must be blank' } end describe Response do it { should_not allow_value(0).for(:how_many_people).with_message('must be greater than or equal to 1') } it { should allow_value(1).for(:how_many_people) } it { should_not allow_value(0).for(:how_many_pies). with_message('must be at least 1') } it { should allow_value(1).for(:how_many_pies) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activemodel-validators-1.1.0 | spec/less_or_greater_than_validator_spec.rb |
activemodel-validators-1.0.0 | spec/less_or_greater_than_validator_spec.rb |