lib/draper/test/view_context.rb in draper-0.15.0 vs lib/draper/test/view_context.rb in draper-0.16.0
- old
+ new
@@ -1,9 +1,9 @@
module Draper
module ViewContext
def self.infect!(context)
context.instance_eval do
- ApplicationController.new.set_current_view_context
+ ApplicationController.new.view_context
Draper::ViewContext.current.controller.request ||= ActionController::TestRequest.new
Draper::ViewContext.current.request ||= Draper::ViewContext.current.controller.request
Draper::ViewContext.current.params ||= {}
end
end