Sha256: 21b04d4a3907b08bfff4dced0e8564f6bb943364276009c53eca9f8530eb29f8

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

require 'spec_helper'

describe Gaku::ScholarshipStatus do

  describe 'associations' do
    it { should have_many :students }
  end

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

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

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