Sha256: 6995b42669d5011daadd4f2d897377f31e23525cf4341b55375eb56437170f38

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

require 'spec_helper_models'

describe Gaku::ExamSchedule do

  describe 'relations' do
    it { should belong_to :exam_portion }
    it { should belong_to :schedule }
    it { should belong_to :course }
  end

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

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gaku-0.2.4 core/spec/models/exam_schedule_spec.rb
gaku-0.2.3 core/spec/models/exam_schedule_spec.rb
gaku-0.2.2 core/spec/models/exam_schedule_spec.rb
gaku-0.2.1 core/spec/models/exam_schedule_spec.rb
gaku-0.2.0 core/spec/models/exam_schedule_spec.rb
gaku-0.1.1 core/spec/models/exam_schedule_spec.rb
gaku-0.1.0 core/spec/models/exam_schedule_spec.rb