Commit 5543edf6 authored by Sean McGivern's avatar Sean McGivern

Fix milestone view specs

parent 5ba91aa2
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
- close_msg = group ? 'You may close the milestone now.' : 'Navigate to the project to close the milestone.' - close_msg = group ? 'You may close the milestone now.' : 'Navigate to the project to close the milestone.'
%span All issues for this milestone are closed. #{close_msg} %span All issues for this milestone are closed. #{close_msg}
= render_if_exists 'shared/milestones/burndown', milestone: @milestone, project: @project = render_if_exists 'shared/milestones/burndown', milestone: milestone, project: @project
- if is_dynamic_milestone - if is_dynamic_milestone
.table-holder .table-holder
......
...@@ -6,7 +6,7 @@ describe 'shared/milestones/_issuables.html.haml' do ...@@ -6,7 +6,7 @@ describe 'shared/milestones/_issuables.html.haml' do
before do before do
allow(view).to receive_messages(title: nil, id: nil, show_project_name: nil, allow(view).to receive_messages(title: nil, id: nil, show_project_name: nil,
show_full_project_name: nil, dom_class: '', show_full_project_name: nil, dom_class: '',
issuables: double(size: issuables_size).as_null_object) issuables: double(length: issuables_size).as_null_object)
stub_template 'shared/milestones/_issuable.html.haml' => '' stub_template 'shared/milestones/_issuable.html.haml' => ''
end end
......
...@@ -7,6 +7,7 @@ describe 'shared/milestones/_top.html.haml' do ...@@ -7,6 +7,7 @@ describe 'shared/milestones/_top.html.haml' do
before do before do
allow(milestone).to receive(:milestones) { [] } allow(milestone).to receive(:milestones) { [] }
allow(milestone).to receive(:milestone) { milestone }
end end
it 'renders a deprecation message for a legacy milestone' do it 'renders a deprecation message for a legacy milestone' 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