Sha256: ca1cb5f332a0af7ff210f1c29592408b7e7557840502ea5a9c2cd09429b81cf5
Contents?: true
Size: 468 Bytes
Versions: 26
Compression:
Stored size: 468 Bytes
Contents
require "spec_helper" RSpec.describe ContextModule, type: :model do let(:subject) { FactoryGirl.create(:context_module) } describe "associations" do it do should belong_to(:canvas_context) end it do should have_many(:context_module_items) .with_primary_key(:canvas_context_module_id) .with_foreign_key(:canvas_context_module_id) end it { should have_many(:assignments).through(:context_module_items) } end end
Version data entries
26 entries across 26 versions & 1 rubygems