Sha256: f86c6b58d47b9b8a5f81437a3b633fcc0aca679322b53c065aa6669c4e47cd12

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

require 'spec_helper'

describe Gaku::StudentAchievement do

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

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

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