spec/draper/helper_proxy_spec.rb in draper-2.1.0 vs spec/draper/helper_proxy_spec.rb in draper-3.0.0.pre1

- old
+ new

@@ -50,10 +50,10 @@ describe "proxying methods which are overriding" do it "proxies :capture" do view_context = double helper_proxy = HelperProxy.new(view_context) - view_context.stub(:capture) { |*args, &block| [*args, block.call] } + allow(view_context).to receive(:capture) { |*args, &block| [*args, block.call] } expect(helper_proxy.capture(:first_arg, :second_arg){:yielded}).to \ be_eql [:first_arg, :second_arg, :yielded] end end end