Sha256: c4883775d6da1c66f04cf6f5b0633298a6a03e9512c80529ce9ac34f571ed941

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

require 'spec_helper_models'

describe Gaku::SimpleGrade do

  describe 'associations' do
    it { should belong_to :simple_grade_type }
    it { should belong_to :student }
  end

  describe 'validations' do
    it { should validate_presence_of :simple_grade_type_id }
    it { should validate_presence_of :student_id }
    it { should validate_presence_of :score }
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

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