diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-28 23:08:21 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-28 23:08:21 +0000 |
commit | b2d5869e08f9f4a790b61f53007b3ff0a467ebc9 (patch) | |
tree | d2fc4293f2171ec56a4b08807e34e5919308ad64 /spec | |
parent | 4c4810b35b3b1729865640382b4c7e593f8b876d (diff) | |
parent | 3daf142fefa30611ba74f844227078b23d8bd9e8 (diff) | |
download | gitlab-ce-b2d5869e08f9f4a790b61f53007b3ff0a467ebc9.tar.gz |
Merge branch '23602-show-milestone-id-in-a-consistent-way' into 'master'
Show milestone ID in a consistent way
Closes #23602
See merge request !8820
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/milestone_spec.rb | 2 | ||||
-rw-r--r-- | spec/helpers/milestones_helper_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/milestone_spec.rb b/spec/features/milestone_spec.rb index a2e40546588..c3297de709a 100644 --- a/spec/features/milestone_spec.rb +++ b/spec/features/milestone_spec.rb @@ -24,7 +24,7 @@ feature 'Milestone', feature: true do find('input[name="commit"]').click expect(find('.alert-success')).to have_content('Assign some issues to this milestone.') - expect(page).to have_content('Nov 16, 2016 - Dec 16, 2016') + expect(page).to have_content('Nov 16, 2016–Dec 16, 2016') end end diff --git a/spec/helpers/milestones_helper_spec.rb b/spec/helpers/milestones_helper_spec.rb index 14a95479339..68b20a1e4fc 100644 --- a/spec/helpers/milestones_helper_spec.rb +++ b/spec/helpers/milestones_helper_spec.rb @@ -17,7 +17,7 @@ describe MilestonesHelper do it { expect(result_for(due_date: yesterday)).to eq("expired on #{yesterday_formatted}") } it { expect(result_for(start_date: tomorrow)).to eq("starts on #{tomorrow_formatted}") } it { expect(result_for(start_date: yesterday)).to eq("started on #{yesterday_formatted}") } - it { expect(result_for(start_date: yesterday, due_date: tomorrow)).to eq("#{yesterday_formatted} - #{tomorrow_formatted}") } + it { expect(result_for(start_date: yesterday, due_date: tomorrow)).to eq("#{yesterday_formatted}–#{tomorrow_formatted}") } end describe '#milestone_counts' do |