Sha256: 0901bb128ea302b8acea2181c8f10b13ea1014fd60a4a7ae40bdccef32191e5c

Contents?: true

Size: 518 Bytes

Versions: 10

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe Lcms::Engine::Admin::AssociationPickerController do
  let(:user) { create :admin }

  before { sign_in user }

  describe '#index' do
    %w(content_sources tags grades topics reading_assignment_authors reading_assignment_texts standards)
      .each do |assoc|
        it "list #{assoc} association items" do
          get :index, params: { association: assoc, format: :json }
          expect(response).to be_successful
        end
      end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.5.4 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.5.3 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.5.2 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.5.1 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.5.0 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.4.2 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.4.1 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.4.0 spec/controllers/admin/association_picker_controller_spec.rb
lcms-engine-0.3.1 spec/controllers/admin/association_picker_controller_spec.rb