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