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