Created
June 26, 2010 23:06
-
-
Save febuiles/454429 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'without_callbacks' do | |
before(:all) { disable_ar_callbacks } | |
after(:all) { enable_ar_callbacks } | |
it { should ensure_length_of(:Description).is_at_most(2000) } | |
it { should ensure_length_of(:Keywords).is_at_most(1000) } | |
it { should have_many :aws_turk_hit_requests } | |
it { should validate_numericality_of :AutoGrantedValue } | |
it { should validate_numericality_of :RetryDelayInSecond } | |
it { should validate_numericality_of :TestDurationInSeconds } | |
it { should validate_presence_of :Description } | |
it { should validate_presence_of :Name } | |
it { should validate_presence_of :QualificationTypeStatus } | |
it { should validate_uniqueness_of(:Name) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment