test/unit/version_test.rb in paper_trail-2.7.1 vs test/unit/version_test.rb in paper_trail-2.7.2

- old
+ new

@@ -38,6 +38,20 @@ Version.destroys.each do |version| assert_equal "destroy", version.event end end end + + context "Version.not_creates" do + setup { + @article.update_attributes(:name => 'Animal') + @article.destroy + assert Version.not_creates.present? + } + + should "return all items except create events" do + Version.not_creates.each do |version| + assert_not_equal "create", version.event + end + end + end end