提交 8622763e 编写于 作者: S Shinya Maeda

Use regex for the extecped time

上级 f056bb1d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册