Sha256: 571fd83a870c6255b3d7bbe95ace04ca0d7f252eaeec0bb96a988d6b5309fbb0
Contents?: true
Size: 380 Bytes
Versions: 7
Compression:
Stored size: 380 Bytes
Contents
require 'spec_helper' describe Draper::ModelSupport do subject { Product.new } describe '#decorator' do its(:decorator) { should be_kind_of(ProductDecorator) } its(:decorator) { should be(subject.decorator) } it 'should have abillity to pass block' do a = Product.new.decorator { |d| d.awesome_title } a.should eql "Awesome Title" end end end
Version data entries
7 entries across 7 versions & 1 rubygems