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