diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-29 16:36:39 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-07-07 16:08:15 +0300 |
commit | 14e45c424fa6b147cb32e2ef268b89ab08c37f1f (patch) | |
tree | 73bd1faaf63395ec5cdcc6f2db01aedeefd44d9b /spec/migrations/migrate_stage_id_reference_in_background_spec.rb | |
parent | d953f1762ea9d4be0e53d5280b9f38224b39e67b (diff) |
Do not compare float with integer in migrations specs
Diffstat (limited to 'spec/migrations/migrate_stage_id_reference_in_background_spec.rb')
-rw-r--r-- | spec/migrations/migrate_stage_id_reference_in_background_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb index 63787d71233..2e5504c849d 100644 --- a/spec/migrations/migrate_stage_id_reference_in_background_spec.rb +++ b/spec/migrations/migrate_stage_id_reference_in_background_spec.rb @@ -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 |