summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-10-12 11:34:15 +0900
committerShinya Maeda <shinya@gitlab.com>2018-10-12 11:34:15 +0900
commit8622763e6cbba52037964d573a8b40ae78abe747 (patch)
tree7448673cd62747c12b86abf0d832b65c7cef3ced
parentf056bb1da97d01d6db822b52b733aace8887a588 (diff)
downloadgitlab-ce-8622763e6cbba52037964d573a8b40ae78abe747.tar.gz
Use regex for the extecped time
-rw-r--r--spec/features/projects/environments/environments_spec.rb3
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