Sha256: fc353dfdd507092e16589a389dc0cc9a7c129ca535937c2382f79e337b217012
Contents?: true
Size: 798 Bytes
Versions: 108
Compression:
Stored size: 798 Bytes
Contents
require 'rails_helper' RSpec.describe CoalescingPanda::LtiAccount, :type => :model do let(:account) { FactoryGirl.create(:account) } context "associations" do it 'should have many terms' do expect(CoalescingPanda::LtiAccount.reflect_on_association(:terms)).to_not be_nil expect(CoalescingPanda::LtiAccount.reflect_on_association(:terms).macro).to eql(:has_many) end it 'should have many courses' do expect(CoalescingPanda::LtiAccount.reflect_on_association(:courses)).to_not be_nil expect(CoalescingPanda::LtiAccount.reflect_on_association(:courses).macro).to eql(:has_many) end end context 'validations' do it 'should require a canvas id' do expect(FactoryGirl.build(:account, canvas_account_id: "")).to_not be_valid end end end
Version data entries
108 entries across 108 versions & 1 rubygems