Sha256: 245d71358f934c28a170b8a1a1ce37e7185c1ce7f80d8dc4ae3ecb1efc85a0c0

Contents?: true

Size: 306 Bytes

Versions: 7

Compression:

Stored size: 306 Bytes

Contents

require 'spec_helper_models'

describe Gaku::ExamScore do

  describe 'relations' do
    it { should belong_to :exam }
  end

  describe 'validations' do
    it { should validate_presence_of :exam }
    it { should validate_presence_of :score }
    it { should validate_numericality_of :score }
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

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