Sha256: 86221d6356843e42eea29a8bed1219cf35b0997e542582a952a82861e8160556

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

require 'spec_helper_models'

describe Gaku::Lesson do

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

  describe 'validations' do
    it { should validate_presence_of :lesson_plan }
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

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