require 'spec_helper_models' describe Gaku::SchoolRole do describe 'relations' do it { should belong_to :school_rolable } end describe 'validations' do it { should validate_presence_of :name } it { should validate_uniqueness_of :name } end describe '#to_s' do let(:school_role) { build(:school_role) } specify { school_role.to_s.should eq school_role.name } end end