require'spec_helper'describeExploreHelperdolet(:user){build(:user)}beforedoallow(helper).toreceive(:current_user).and_return(user)allow(helper).toreceive(:can?){true}enddescribe'#explore_nav_links'doit'has all the expected links by default'domenu_items=[:projects,:groups,:snippets]expect(helper.explore_nav_links).tocontain_exactly(*menu_items)endendend