Sha256: a8458fcb67f12a78927b51213d834312055a72636d727b84c5720588cb68b1c4

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

module StrongPresenter
  module PresenterExampleGroup
    include StrongPresenter::TestCase::Behavior
    extend ActiveSupport::Concern

    included { metadata[:type] = :presenter }
  end

  RSpec.configure do |config|
    config.include PresenterExampleGroup, example_group: {file_path: %r{spec/presenters}}, type: :presenter

    [:presenter, :controller, :mailer].each do |type|
      config.before(:each, type: type) { StrongPresenter::ViewContext.clear! }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
strong_presenter-0.2.2 lib/strong_presenter/test/rspec_integration.rb
strong_presenter-0.2.1 lib/strong_presenter/test/rspec_integration.rb
strong_presenter-0.2.0 lib/strong_presenter/test/rspec_integration.rb
strong_presenter-0.1.0 lib/strong_presenter/test/rspec_integration.rb