Sha256: 9447f234a3d683c02bfbcdb2b6894adb062e85f6c6132fd90d5b600e66290144

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

module MiniTestSpecRails
  module Init
    module ActionControllerBehavior

      def self.included(klass)
        klass.class_eval do
          register_spec_type(/Controller( ?Test)?\z/i, self)
          register_spec_type(self) { |desc| Class === desc && desc < self }
          register_rails_test_case self
        end
      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

3 entries across 3 versions & 1 rubygems

Version Path
minitest-spec-rails-3.1.2 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-3.1.1 lib/minitest-spec-rails/init/action_controller.rb
minitest-spec-rails-3.1.0 lib/minitest-spec-rails/init/action_controller.rb