Sha256: 26fc6d861a63bbcf2353638e07701d345ea37e10394cdf8d4f82036d262539dc
Contents?: true
Size: 608 Bytes
Versions: 8
Compression:
Stored size: 608 Bytes
Contents
require 'rails_helper' RSpec.describe CoalescingPanda::Term, :type => :model do let(:term) { FactoryGirl.create(:term) } context "associations" do it 'should belong_to a account' do expect(CoalescingPanda::Term.reflect_on_association(:account)).to_not be_nil expect(CoalescingPanda::Term.reflect_on_association(:account).macro).to eql(:belongs_to) end it 'should belong_to a user' do expect(CoalescingPanda::Term.reflect_on_association(:courses)).to_not be_nil expect(CoalescingPanda::Term.reflect_on_association(:courses).macro).to eql(:has_many) end end end
Version data entries
8 entries across 8 versions & 1 rubygems