From d168f0fdf874d41ce20ba1c3bac5735305ef820e Mon Sep 17 00:00:00 2001 From: Slava Kardakov Date: Thu, 22 Oct 2020 15:10:51 +0300 Subject: [PATCH] Workaround https://github.com/rspec/rspec-mocks/issues/1348 --- lib/draper/helper_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/draper/helper_proxy.rb b/lib/draper/helper_proxy.rb index 8645a138..8179fae1 100644 --- a/lib/draper/helper_proxy.rb +++ b/lib/draper/helper_proxy.rb @@ -10,7 +10,7 @@ def initialize(view_context) # Sends helper methods to the view context. def method_missing(method, *args, &block) self.class.define_proxy method - send(method, *args, &block) + view_context.send(method, *args, &block) end # Checks if the context responds to an instance method, or is able to