Sha256: 2628ada348922edd33dc93c30a347aaccbc1e55bc6d85a17657f77f732349d4c
Contents?: true
Size: 616 Bytes
Versions: 3
Compression:
Stored size: 616 Bytes
Contents
require 'spec_helper' describe Widget do describe '`be_versioned` matcher' do it { should be_versioned } end describe "`versioning` option" do let(:widget) { Widget.create :name => 'Bob', :an_integer => 1 } context :enabled, :versioning => true do it 'should enable versioning for models wrapped within a block' do widget.versions.size.should == 1 end end context '`disabled` (default)' do it 'should not enable versioning for models wrapped within a block not marked to used versioning' do widget.versions.size.should == 0 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paper_trail-3.0.0 | spec/models/widget_spec.rb |
paper_trail-3.0.0.rc2 | spec/models/widget_spec.rb |
paper_trail-3.0.0.rc1 | spec/models/widget_spec.rb |