Fix specs
This commit is contained in:
parent
3a1fff9c62
commit
2ca2e06269
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue