Sha256: 5ceddcc3d271504c8328308accf878cc59649fc467a65537403ba9ac8fcd7a68
Contents?: true
Size: 436 Bytes
Versions: 7
Compression:
Stored size: 436 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, file_path: %r{spec/decorators}, type: :decorator [:decorator, :controller, :mailer].each do |type| config.before(:each, type: type) { Draper::ViewContext.clear! } end end end
Version data entries
7 entries across 7 versions & 1 rubygems