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
1 changed files with 0 additions and 1 deletions

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