Sha256: 8f9d10b59df7fcb26a6854a81f7314cb961dcf9e95ebd73a1f4c5234fbd3ff3e
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
require 'spec_helper' describe Gaku::GradingMethodSetItem do describe 'associations' do it { should belong_to :grading_method } it { should belong_to :grading_method_set } end describe 'validations' do it do should validate_uniqueness_of(:grading_method_id).scoped_to(:grading_method_set_id) .with_message('Grading Method already added to Grading Method Set') end it { should validate_presence_of :grading_method_id } it { should validate_presence_of :grading_method_set_id } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gaku-0.0.3 | core/spec/models/grading_method_set_item_spec.rb |
gaku-0.0.2 | core/spec/models/grading_method_set_item_spec.rb |
gaku-0.0.1 | core/spec/models/grading_method_set_item_spec.rb |