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

Version Path
canvas_sync-0.9.4 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.9.3 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.9.2 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.9.1 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.9.0 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.8.4 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.8.3 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.8.2 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.8.1 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.8.0 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.7.3 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.7.2 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.7.1 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.7.0 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.6.4 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.6.3 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.6.2 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.6.1 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.6.0 spec/canvas_sync/models/context_module_spec.rb
canvas_sync-0.5.4 spec/canvas_sync/models/context_module_spec.rb