Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-06-07 23:38:28 +0300
committerClement Ho <clemmakesapps@gmail.com>2018-06-07 23:38:28 +0300
commit85b6b56a73c15eff10119de5ced2d36ad9125e86 (patch)
tree6d8ae2ac5c69b569e1b1e705ab337a8cf42bf627 /spec
parent735bfe053bc28c0d65b881e5c69e3b947c540870 (diff)
parent3f55e0b29fe39c5fd31c703911c96808bd17335d (diff)
Merge branch '47182-use-the-default-strings-of-timeago-js' into 'master'
Use the default strings of timeago.js for timeago Closes #47182 See merge request gitlab-org/gitlab-ce!19350
Diffstat (limited to 'spec')
-rw-r--r--spec/features/admin/admin_uses_repository_checks_spec.rb2
-rw-r--r--spec/features/merge_request/user_posts_notes_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/admin/admin_uses_repository_checks_spec.rb b/spec/features/admin/admin_uses_repository_checks_spec.rb
index 90cf5a53787..7371a494d36 100644
--- a/spec/features/admin/admin_uses_repository_checks_spec.rb
+++ b/spec/features/admin/admin_uses_repository_checks_spec.rb
@@ -28,7 +28,7 @@ feature 'Admin uses repository checks' do
visit_admin_project_page(project)
page.within('.alert') do
- expect(page.text).to match(/Last repository check \(.* ago\) failed/)
+ expect(page.text).to match(/Last repository check \(just now\) failed/)
end
end
diff --git a/spec/features/merge_request/user_posts_notes_spec.rb b/spec/features/merge_request/user_posts_notes_spec.rb
index b54addce993..3bd9f5e2298 100644
--- a/spec/features/merge_request/user_posts_notes_spec.rb
+++ b/spec/features/merge_request/user_posts_notes_spec.rb
@@ -139,7 +139,7 @@ describe 'Merge request > User posts notes', :js do
page.within("#note_#{note.id}") do
is_expected.to have_css('.note_edited_ago')
expect(find('.note_edited_ago').text)
- .to match(/less than a minute ago/)
+ .to match(/just now/)
end
end
end