Sha256: 9efa522b3324e682abbb626b7a104d728c284199b9dd52a4994b471fc7ee06b0
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
require 'spec_helper' describe Draper::HelperSupport do before(:each){ @product = Product.new} context '#decorate' do it 'renders a block' do output = ApplicationController.decorate(@product){|p| p.model.object_id } output.should == @product.object_id end it 'uses #capture so Rails only renders the content once' do ApplicationController.decorate(@product){|p| p.model.object_id } ApplicationController.capture_triggered.should be end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
draper-0.11.1 | spec/draper/helper_support_spec.rb |
draper-0.11.0 | spec/draper/helper_support_spec.rb |