Sha256: 6e80bf80e665efbb30c3f58c56ce259a53aa38c644f8084dd1211a7296bb3ccb

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'

describe Gaku::ExternalSchoolRecord do

  describe 'associations' do
    it { should belong_to :school }
    it { should belong_to :student }

    it { should have_many :simple_grades }
    it { should have_many :achievements }
  end

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gaku-0.0.3 core/spec/models/external_school_record_spec.rb
gaku-0.0.2 core/spec/models/external_school_record_spec.rb
gaku-0.0.1 core/spec/models/external_school_record_spec.rb