Sha256: bd51cabfacbe7089c45a9c8fff43d6d9a1ecf0b69d1077245ca90bf51d6b9636

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper_models'

describe Gaku::SimpleGradeType do

  describe 'associations' do
    it { should belong_to :school }
    it { should belong_to :grading_method }
  end

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

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

end

Version data entries

7 entries across 7 versions & 1 rubygems

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