tests: fix timestamp comparison in artist notes saving test.

Equality test failed due to microsecond level differences. Truncate to
seconds to avoid this.
This commit is contained in:
evazion
2018-01-20 13:08:40 -06:00
parent 3d09ce5e55
commit ce06736374

View File

@@ -159,7 +159,7 @@ class ArtistsControllerTest < ActionController::TestCase
end
@wiki_page.reload
assert_equal(old_timestamp, @wiki_page.updated_at)
assert_equal(old_timestamp.to_i, @wiki_page.updated_at.to_i)
assert_equal(old_updater_id, @wiki_page.updater_id)
end