Sha256: 93e60f2e5267cd0fb5f2a4ff24c4e9c27daa7ff4306f3a6999790dcd870c465d

Contents?: true

Size: 585 Bytes

Versions: 3

Compression:

Stored size: 585 Bytes

Contents

require 'spec_helper'

describe Gaku::Contact do

  describe 'associations' do
    it { should belong_to :contact_type }
    it { should belong_to :contactable }
  end

  describe 'validations' do
    it { should validate_presence_of :data }
    it { should validate_presence_of :contact_type }
  end

  describe 'versioning' do
    it { should be_versioned }
  end


  describe 'methods' do
    it { should respond_to :name }
    it { should respond_to :primary? }
    it { should respond_to :make_primary }
    xit 'ensure_first_is_primary'
    xit 'remove_other_primary'
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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