Sha256: b404cefda6c5944e2270689cfc419f0c5384c4910c1554f23acccd71d3ed09cf

Contents?: true

Size: 272 Bytes

Versions: 32

Compression:

Stored size: 272 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_account_id) }
    it { should validate_uniqueness_of(:canvas_account_id) }
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.9.3 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.9.2 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.9.1 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.9.0 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.8.4 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.8.3 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.8.2 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.8.1 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.8.0 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.7.3 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.7.2 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.7.1 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.7.0 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.6.4 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.6.3 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.6.2 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.6.1 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.6.0 spec/canvas_sync/models/accounts_spec.rb
canvas_sync-0.5.4 spec/canvas_sync/models/accounts_spec.rb