diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-05 21:28:47 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-05 21:28:47 +0300 |
commit | 71961608db04740faa086e6fd7b66e7f6e55fd4e (patch) | |
tree | ed0d35bd4f0f4736d6774bae472f5e8273445e8e /spec/features/projects | |
parent | ca9b99ffbb944f9ac27814c17139add24a517962 (diff) |
Fix time dependent jobs spec
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/jobs_spec.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb index 67b4a520184..2076ce7b4f7 100644 --- a/spec/features/projects/jobs_spec.rb +++ b/spec/features/projects/jobs_spec.rb @@ -568,12 +568,8 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do end it 'shows delayed job', :js do - time_diff = [0, job.scheduled_at - Time.now].max - - expect(page).to have_content(job.detailed_status(user).illustration[:title]) expect(page).to have_content('This is a scheduled to run in') expect(page).to have_content("This job will automatically run after it's timer finishes.") - expect(page).to have_content(Time.at(time_diff).utc.strftime("%H:%M:%S")) expect(page).to have_link('Unschedule job') end |