Sha256: c070b6f30e0ef34eafff242e940a9ee78a4e7b9c10039eb3b937435491f4c424
Contents?: true
Size: 446 Bytes
Versions: 137
Compression:
Stored size: 446 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(: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
137 entries across 137 versions & 1 rubygems