From ce06736374e6400976b9951eb6c153a591446c21 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 20 Jan 2018 13:08:40 -0600 Subject: [PATCH] tests: fix timestamp comparison in artist notes saving test. Equality test failed due to microsecond level differences. Truncate to seconds to avoid this. --- test/functional/artists_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/artists_controller_test.rb b/test/functional/artists_controller_test.rb index db3c4ec67..17e4b8db6 100644 --- a/test/functional/artists_controller_test.rb +++ b/test/functional/artists_controller_test.rb @@ -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