Do not compare float with integer in migrations specs

This commit is contained in:
Grzegorz Bizon 2017-06-29 15:36:39 +02:00
parent d953f1762e
commit 14e45c424f
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ describe MigrateStageIdReferenceInBackground, :migration, :sidekiq do
match do |migration|
BackgroundMigrationWorker.jobs.any? do |job|
job['args'] == [migration, expected] &&
job['at'].to_f == (delay.to_i + Time.now.to_i)
job['at'].to_i == (delay.to_i + Time.now.to_i)
end
end