summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-27 15:27:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-27 15:27:26 +0000
commitaee004311cd93409176ea4f6e2bdcd0601487e4b (patch)
tree35abf314effc17640ddb6a16c0e4b5d126323bff
parentceec8accb09a4c43d70896440d3662bf6dc765dc (diff)
downloadgitlab-ce-aee004311cd93409176ea4f6e2bdcd0601487e4b.tar.gz
Add latest changes from gitlab-org/gitlab@14-3-stable-ee
-rw-r--r--spec/features/admin/admin_users_impersonation_tokens_spec.rb2
-rw-r--r--spec/features/profiles/personal_access_tokens_spec.rb2
-rw-r--r--spec/features/projects/settings/access_tokens_spec.rb2
-rw-r--r--spec/support/shared_examples/features/deploy_token_shared_examples.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/admin/admin_users_impersonation_tokens_spec.rb b/spec/features/admin/admin_users_impersonation_tokens_spec.rb
index 0966032ff37..ed8ea84fbf8 100644
--- a/spec/features/admin/admin_users_impersonation_tokens_spec.rb
+++ b/spec/features/admin/admin_users_impersonation_tokens_spec.rb
@@ -66,7 +66,7 @@ RSpec.describe 'Admin > Users > Impersonation Tokens', :js do
admin.update!(time_display_relative: false)
visit admin_user_impersonation_tokens_path(user_id: user.username)
- expect(active_impersonation_tokens).to have_text(personal_access_token.expires_at.strftime('%b %d'))
+ expect(active_impersonation_tokens).to have_text(personal_access_token.expires_at.strftime('%b %-d'))
end
end
diff --git a/spec/features/profiles/personal_access_tokens_spec.rb b/spec/features/profiles/personal_access_tokens_spec.rb
index 8025db9f86d..8f44299b18f 100644
--- a/spec/features/profiles/personal_access_tokens_spec.rb
+++ b/spec/features/profiles/personal_access_tokens_spec.rb
@@ -94,7 +94,7 @@ RSpec.describe 'Profile > Personal Access Tokens', :js do
it 'shows absolute times for expires_at' do
visit profile_personal_access_tokens_path
- expect(active_personal_access_tokens).to have_text(PersonalAccessToken.last.expires_at.strftime('%b %d'))
+ expect(active_personal_access_tokens).to have_text(PersonalAccessToken.last.expires_at.strftime('%b %-d'))
end
end
end
diff --git a/spec/features/projects/settings/access_tokens_spec.rb b/spec/features/projects/settings/access_tokens_spec.rb
index deeab084c5f..4941b936c0c 100644
--- a/spec/features/projects/settings/access_tokens_spec.rb
+++ b/spec/features/projects/settings/access_tokens_spec.rb
@@ -165,7 +165,7 @@ RSpec.describe 'Project > Settings > Access Tokens', :js do
it 'shows absolute times for expires_at' do
visit project_settings_access_tokens_path(project)
- expect(active_project_access_tokens).to have_text(PersonalAccessToken.last.expires_at.strftime('%b %d'))
+ expect(active_project_access_tokens).to have_text(PersonalAccessToken.last.expires_at.strftime('%b %-d'))
end
end
end
diff --git a/spec/support/shared_examples/features/deploy_token_shared_examples.rb b/spec/support/shared_examples/features/deploy_token_shared_examples.rb
index e70f9b52c09..25dfe089f51 100644
--- a/spec/support/shared_examples/features/deploy_token_shared_examples.rb
+++ b/spec/support/shared_examples/features/deploy_token_shared_examples.rb
@@ -41,7 +41,7 @@ RSpec.shared_examples 'a deploy token in settings' do
visit page_path
within('.deploy-tokens') do
- expect(page).to have_content(deploy_token.expires_at.strftime('%b %d'))
+ expect(page).to have_content(deploy_token.expires_at.strftime('%b %-d'))
end
end
end