test/unit/timestamp_test.rb in paper_trail-2.6.1 vs test/unit/timestamp_test.rb in paper_trail-2.6.2

- old
+ new

@@ -1,20 +1,24 @@ require 'test_helper' class TimestampTest < ActiveSupport::TestCase setup do - PaperTrail.config.timestamp_field = :custom_created_at + PaperTrail.timestamp_field = :custom_created_at change_schema Version.reset_column_information Fluxor.instance_eval <<-END has_paper_trail END @fluxor = Fluxor.create :name => 'Some text.' @fluxor.update_attributes :name => 'Some more text.' @fluxor.update_attributes :name => 'Even more text.' + end + + teardown do + PaperTrail.timestamp_field = :created_at end test 'versions works with custom timestamp field' do # Normal behaviour assert_equal 3, @fluxor.versions.length