require'spec_helper'describe'shared/milestones/_issuables.html.haml'dolet(:issuables_size){100}beforedoallow(view).toreceive_messages(title: nil,id: nil,show_project_name: nil,show_full_project_name: nil,dom_class: '',issuables: double(size: issuables_size).as_null_object)stub_template'shared/milestones/_issuable.html.haml'=>''endit'should show the issuables count if show_counter is true'dorender'shared/milestones/issuables',show_counter: trueexpect(rendered).tohave_content('100')endit'should not show the issuables count if show_counter is false'dorender'shared/milestones/issuables',show_counter: falseexpect(rendered).not_tohave_content('100')enddescribe'a high issuables count'dolet(:issuables_size){1000}it'should show a delimited number if show_counter is true'dorender'shared/milestones/issuables',show_counter: trueexpect(rendered).tohave_content('1,000')endendend