Sha256: 2c37b6122fccfe97053de67b0820f0f0fa5046c9ce566b4a88526af90d8970cb
Contents?: true
Size: 535 Bytes
Versions: 4
Compression:
Stored size: 535 Bytes
Contents
module Draper module DecoratorExampleGroup extend ActiveSupport::Concern included { metadata[:type] = :decorator } end end RSpec.configure do |config| # Automatically tag specs in specs/decorators as type: :decorator config.include Draper::DecoratorExampleGroup, :type => :decorator, :example_group => { :file_path => /spec[\\\/]decorators/ } end if defined?(Capybara) require 'capybara/rspec/matchers' RSpec.configure do |config| config.include Capybara::RSpecMatchers, :type => :decorator end end
Version data entries
4 entries across 4 versions & 1 rubygems