lib/draper/test/rspec_integration.rb in draper-0.17.0 vs lib/draper/test/rspec_integration.rb in draper-0.18.0

- old
+ new

@@ -1,7 +1,5 @@ -require 'draper/test/view_context' - module Draper module DecoratorExampleGroup extend ActiveSupport::Concern included { metadata[:type] = :decorator } end @@ -11,13 +9,9 @@ # Automatically tag specs in specs/decorators as type: :decorator config.include Draper::DecoratorExampleGroup, :type => :decorator, :example_group => { :file_path => /spec[\\\/]decorators/ } - # Specs tagged type: :decorator set the Draper view context - config.before :type => :decorator do - Draper::ViewContext.infect!(self) - end end if defined?(Capybara) require 'capybara/rspec/matchers'