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

Version Path
draper-1.0.0.beta3 lib/draper/test/rspec_integration.rb
draper-1.0.0.beta2 lib/draper/test/rspec_integration.rb
draper-1.0.0.beta1 lib/draper/test/rspec_integration.rb
draper-0.18.0 lib/draper/test/rspec_integration.rb