Sha256: 34fb73ed5eb8f76cb6b74087f2f477e87a3fdc28131186ebec84c4c82616d4c9

Contents?: true

Size: 434 Bytes

Versions: 5

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper_models'

describe Gaku::ExamSession do

  # describe 'validations' do
  # end

  describe 'relations' do
    it { should belong_to :exam }
    it { should have_many(:student_exam_sessions) }
    it { should have_many(:students).through(:student_exam_sessions) }

  end

  describe '#to_s' do
    let(:exam_session) { build(:exam_session) }
    specify { exam_session.to_s.should eq exam_session.name }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

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