Permalink
Browse files

Test mkurkov's patch.

  • Loading branch information...
1 parent 3ff8dff commit 12c8fdd42d6ce684c202e6a31b9db0ab824f9f03 @airblade airblade committed Oct 28, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/paper_trail_model_test.rb
@@ -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

0 comments on commit 12c8fdd

Please sign in to comment.