1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Fix intermittently failing test

This assertion fails in about 1/50 CI builds when the insertions
happen in different seconds (eg. at 0.9999s then at 1.0001s)

So, we could assert `be_within().of(Time.now)` but really, we
don't need this assertion at all. I don't see what it has to do
with the `update_columns` method. Maybe I'm missing something?
This commit is contained in:
Jared Beck 2018-05-14 23:03:54 -04:00
parent edd071d802
commit 547dd1172f

View file

@ -271,7 +271,6 @@ RSpec.describe Widget, type: :model do
expect(widget.versions.count).to eq(2)
expect(widget.versions.last.event).to(eq("update"))
expect(widget.versions.last.changeset[:name]).to eq([nil, "Bugle"])
expect(widget.versions.last.created_at.to_i).to eq(Time.now.to_i)
end
end