diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-09 22:35:11 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-09 22:38:24 +0300 |
commit | 541e663c125f322cdbb680a9081f2e8470d9ef4e (patch) | |
tree | 0b0832c3757f9995ed9db35283e7f98a2c153182 /spec | |
parent | 89523396ba3e0af1a0b3a90cdae5b28d06219816 (diff) |
Change date format to be non zero padded in order to fix failing test
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/dashboard/datetime_on_tooltips_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/dashboard/datetime_on_tooltips_spec.rb b/spec/features/dashboard/datetime_on_tooltips_spec.rb index e77db0dd2a2..365cb445df1 100644 --- a/spec/features/dashboard/datetime_on_tooltips_spec.rb +++ b/spec/features/dashboard/datetime_on_tooltips_spec.rb @@ -6,7 +6,7 @@ feature 'Tooltips on .timeago dates', feature: true, js: true do let(:user) { create(:user) } let(:project) { create(:project, name: 'test', namespace: user.namespace) } 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 before do |