Skip to content

Instantly share code, notes, and snippets.

@febuiles
Created June 26, 2010 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save febuiles/454429 to your computer and use it in GitHub Desktop.
Save febuiles/454429 to your computer and use it in GitHub Desktop.
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