Sha256: eeb8f2ebd178e96f255065940d61817c3e5e5ae65734e6666511cc6a912f0794

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 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/, 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

5 entries across 5 versions & 1 rubygems

Version Path
minitest-spec-rails-4.7.8 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.7.7 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.7.6 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.7.5 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-4.7.4 lib/minitest-spec-rails/init/action_controller.rb