Sha256: cc132b68cccb96f3d9d201ac14ad809b681883fff5a650e03656fa2ecf5a4d84

Contents?: true

Size: 328 Bytes

Versions: 127

Compression:

Stored size: 328 Bytes

Contents

require 'spec_helper'

RSpec.describe Account, type: :model do
  let(:subject) { FactoryGirl.create(:account) }

  describe 'validations' do
    it { should validate_presence_of(:canvas_id) }
    it { should validate_uniqueness_of(:canvas_id) }
  end

  describe 'associations' do
    it { should have_many(:groups) }
  end
end

Version data entries

127 entries across 127 versions & 1 rubygems

Version Path
canvas_sync-0.20.3 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.1.beta2 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.1.beta1 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta10 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta9 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta8 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta7 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta6 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta5 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta4 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta3 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta2 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.19.0.beta1 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.18.12 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.18.10 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.18.9 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.18.8 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.18.7 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.18.6 spec/canvas_sync/models/accounts_spec.rb