Sha256: bf0e25a30cb6e3451e039c7883cc1c4a2ef45ce1fd9d17146c9ee52af76700d8
Contents?: true
Size: 452 Bytes
Versions: 4
Compression:
Stored size: 452 Bytes
Contents
module Draper module DecoratorExampleGroup include Draper::TestCase::Behavior extend ActiveSupport::Concern included { metadata[:type] = :decorator } end RSpec.configure do |config| config.include DecoratorExampleGroup, example_group: {file_path: %r{spec/decorators}}, type: :decorator [:decorator, :controller, :mailer].each do |type| config.after(:each, type: type) { Draper::ViewContext.clear! } end end end
Version data entries
4 entries across 4 versions & 2 rubygems