Test mkurkov's patch.

This commit is contained in:
Andy Stewart 2010-10-28 18:16:30 +01:00
parent 3ff8dff7dc
commit 12c8fdd42d
1 changed files with 11 additions and 0 deletions

View File

@ -769,6 +769,17 @@ class HasPaperTrailModelTest < Test::Unit::TestCase
end
context 'An unsaved record' do
setup do
@widget = Widget.new
@widget.destroy
end
should 'not have a version created on destroy' do
assert @widget.versions.empty?
end
end
private
# Updates `model`'s last version so it looks like the version was