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