1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec/models/widget_spec.rb

13 lines
324 B
Ruby

require 'spec_helper'
describe Widget do
it { should be_versioned }
context 'be_versioned matcher', :versioning => true do
it 'should respond to be_versioned' do
widget = Widget.create :name => 'Bob', :an_integer => 1
widget.should be_versioned
widget.versions.size.should == 1
end
end
end