Skip to content

Commit

Permalink
Fix a test that failed sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Li committed Dec 17, 2014
1 parent e78b1e9 commit f39ccd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/model_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ def without(&block)
count = PaperTrail::Version.count
@book.authors.create :name => 'Tolstoy'
assert_equal 2, PaperTrail::Version.count - count
assert_same_elements [Person.last, Authorship.last], [PaperTrail::Version.all[-2].item, PaperTrail::Version.last.item]
assert_same_elements [Person.last, Authorship.last], [PaperTrail::Version.order(:id).to_a[-2].item, PaperTrail::Version.last.item]
end

should 'store version on join destroy' do
Expand Down

0 comments on commit f39ccd2

Please sign in to comment.