Commit 541e663c authored by Alfredo Sumaran's avatar Alfredo Sumaran

Change date format to be non zero padded in order to fix failing test

parent 89523396
...@@ -6,7 +6,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do ...@@ -6,7 +6,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, name: 'test', namespace: user.namespace) } let(:project) { create(:project, name: 'test', namespace: user.namespace) }
let(:created_date) { Date.yesterday.to_time } let(:created_date) { Date.yesterday.to_time }
let(:expected_format) { created_date.strftime('%b %d, %Y %l:%M%P UTC') } let(:expected_format) { created_date.strftime('%b %-d, %Y %l:%M%P UTC') }
context 'on the activity tab' do context 'on the activity tab' do
before do before do
......
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