Sha256: a21cdf6d1663613ba6b32b736ab49e85bcfb343764257b9f76d28890e985cf2c

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

describe Gaku::School do

	describe 'concerns' do
		it_behaves_like 'avatarable'
	end

	describe 'associations' do
		it { should have_many :levels }
		it { should have_many :campuses }
		it { should have_many :simple_grades }
		it { should have_many :programs }
		it { should have_one :master_campus }
	end

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

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