Add spec for navbar_item helper method.
Refactor.