spec/models/widget_spec.rb in paper_trail-4.0.0 vs spec/models/widget_spec.rb in paper_trail-4.0.1
- old
+ new
@@ -49,11 +49,11 @@
end
describe :after_create do
let(:widget) { Widget.create!(:name => 'Foobar', :created_at => Time.now - 1.week) }
- it "corresponding version should use the widget's `created_at`" do
- expect(widget.versions.last.created_at.to_i).to eq(widget.created_at.to_i)
+ it "corresponding version should use the widget's `updated_at`" do
+ expect(widget.versions.last.created_at.to_i).to eq(widget.updated_at.to_i)
end
end
describe :after_update do
before { widget.update_attributes!(:name => 'Foobar', :updated_at => Time.now + 1.week) }