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:
@@ -159,7 +159,7 @@ class ArtistsControllerTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
@wiki_page.reload
|
@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)
|
assert_equal(old_updater_id, @wiki_page.updater_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user