Sha256: 4862b73cb5361cca4468da4162982ad48d8dbcff07f3f0119347d4cb5dedd36e

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

require 'spec_helper_models'

describe Gaku::ExamPortionScore do

  describe 'relations' do
    it { should belong_to :exam_portion }
    it { should belong_to :student }
    it { should have_many :attendances }
  end

  describe 'validations' do
    it { should validate_presence_of :student }
    it { should validate_presence_of :exam_portion }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku-0.2.4 core/spec/models/exam_portion_score_spec.rb
gaku-0.2.3 core/spec/models/exam_portion_score_spec.rb
gaku-0.2.2 core/spec/models/exam_portion_score_spec.rb
gaku-0.2.1 core/spec/models/exam_portion_score_spec.rb
gaku-0.2.0 core/spec/models/exam_portion_score_spec.rb