Sha256: 18366f5d4ba3c494bde2f38789a79db6f04d064d24780bdcebbecd7ec8499817

Contents?: true

Size: 562 Bytes

Versions: 12

Compression:

Stored size: 562 Bytes

Contents

module MiniTestSpecRails
  module Init
    module ActionViewBehavior
      extend ActiveSupport::Concern

      included do
        class_attribute :_helper_class
        register_spec_type(/(Helper|View)( ?Test)?\z/, self)
        register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self }
        extend Descriptions
      end

      module Descriptions
        def described_class
          determine_default_helper_class(name)
        end
      end
    end
  end
end

ActionView::TestCase.send :include, MiniTestSpecRails::Init::ActionViewBehavior

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
minitest-spec-rails-7.4.1 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-7.4.0 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-7.3.0 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-7.2.0 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-7.1.0 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-7.0.0 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-6.0.4 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-6.0.3 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-6.0.2 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-6.0.1 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-6.0.0 lib/minitest-spec-rails/init/action_view.rb
minitest-spec-rails-5.5.0 lib/minitest-spec-rails/init/action_view.rb