Commit bebc364f authored by Paul Slaughter's avatar Paul Slaughter

Fix broken master caused by zero padded date days in spec

https://gitlab.com/gitlab-org/gitlab/-/issues/341699
parent 7546a09e
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment