Sha256: b333c766302a66fb84b063c5ceec3c7b72e419b3aeadc82aad974656fbdc6a85

Contents?: true

Size: 652 Bytes

Versions: 8

Compression:

Stored size: 652 Bytes

Contents

module MiniTestSpecRails
  module Init
    module ActionControllerBehavior

      extend ActiveSupport::Concern

      included do
        register_spec_type(self) { |desc| Class === desc && desc < ActionController::Metal }
        register_spec_type(/Controller( ?Test)?\z/i, self)
        register_spec_type(self) { |desc| Class === desc && desc < self }
        register_rails_test_case self
      end

      private

      def setup_controller_request_and_response
        describing_class.tests described_class
        super
      end

    end
  end
end

ActionController::TestCase.send :include, MiniTestSpecRails::Init::ActionControllerBehavior

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
minitest-spec-rails-4.7.3 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.7.2 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.7.1 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.7.0 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.3.8 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.3.7 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.3.6 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.3.5 lib/minitest-spec-rails/init/action_controller.rb