diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-10-12 11:34:15 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-10-12 11:34:15 +0900 |
commit | 8622763e6cbba52037964d573a8b40ae78abe747 (patch) | |
tree | 7448673cd62747c12b86abf0d832b65c7cef3ced | |
parent | f056bb1da97d01d6db822b52b733aace8887a588 (diff) | |
download | gitlab-ce-8622763e6cbba52037964d573a8b40ae78abe747.tar.gz |
Use regex for the extecped time
-rw-r--r-- | spec/features/projects/environments/environments_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb index 5671d4b907d..89e21fcd56b 100644 --- a/spec/features/projects/environments/environments_spec.rb +++ b/spec/features/projects/environments/environments_spec.rb @@ -291,9 +291,8 @@ describe 'Environments page', :js do it "has link to the delayed job's action" do find('.js-environment-actions-dropdown').click - time_diff = [0, delayed_job.scheduled_at - Time.now].max expect(page).to have_button('Delayed job') - expect(page).to have_content(Time.at(time_diff).utc.strftime("%H:%M:%S")) + expect(page).to have_content(/\d{2}:\d{2}:\d{2}/) end context 'when delayed job is expired already' do |