Sha256: 2a2e0659e3ce10ae29bebdf9fa9608d834603a2e72117977a724378fee8a2ade

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

require 'spec_helper_models'

describe Gaku::Badge do

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

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

end

Version data entries

7 entries across 7 versions & 1 rubygems

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