Sha256: 0b830a788c0b405414f9c8d4109629b8e7fc7aee22da95f45fef573f1c60cf4e

Contents?: true

Size: 724 Bytes

Versions: 15

Compression:

Stored size: 724 Bytes

Contents

module Shoulda
  module Matchers
    module Integrations
      module Libraries
        # @private
        class ActionController
          Integrations.register_library(self, :action_controller)

          include Integrations::Inclusion
          include Integrations::Rails

          def integrate_with(test_framework)
            test_framework.include(matchers_module, type: :controller)

            include_into(::ActionController::TestCase, matchers_module) do
              def subject
                @controller
              end
            end
          end

          private

          def matchers_module
            Shoulda::Matchers::ActionController
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
shoulda-matchers-4.4.1 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.4.0 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.3.0 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.2.0 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.1.2 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.1.1 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.1.0 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.0.1 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-3.1.3 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-4.0.0.rc1 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-3.1.2 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-3.1.1 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-3.1.0 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-3.0.1 lib/shoulda/matchers/integrations/libraries/action_controller.rb
shoulda-matchers-3.0.0 lib/shoulda/matchers/integrations/libraries/action_controller.rb