require'spec_helper'describeWikiHelperdodescribe'#breadcrumb'docontext'when the page is at the root level'doit'returns the capitalized page name'doslug='page-name'expect(helper.breadcrumb(slug)).toeq('Page name')endendcontext'when the page is inside a directory'doit'returns the capitalized name of each directory and of the page itself'doslug='dir_1/page-name'expect(helper.breadcrumb(slug)).toeq('Dir_1 / Page name')endendendend