spec/draper/lazy_helpers_spec.rb in draper-1.4.0 vs spec/draper/lazy_helpers_spec.rb in draper-2.0.0

- old
+ new

@@ -6,15 +6,15 @@ let(:decorator) do Struct.new(:helpers){include Draper::LazyHelpers}.new(double) end it "proxies methods to #helpers" do - decorator.helpers.stub(:foo).and_return{|arg| arg} + decorator.helpers.stub(:foo) { |arg| arg } expect(decorator.foo(:passed)).to be :passed end it "passes blocks" do - decorator.helpers.stub(:foo).and_return{|&block| block.call} + decorator.helpers.stub(:foo) { |&block| block.call } expect(decorator.foo{:yielded}).to be :yielded end end end end