Sha256: f16f9c4aaf9c19bcb5aa1eaff2bb2431af72fd2d0295ee1ee15666deb6145377
Contents?: true
Size: 636 Bytes
Versions: 8
Compression:
Stored size: 636 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 end
Version data entries
8 entries across 8 versions & 1 rubygems