shared_examples_for 'the horizontal helper' do all_tests_pass_with 'the horizontal not wrapped in navbar' all_tests_pass_with 'no horizontal options' all_tests_pass_with 'extra horizontal options (except :id)' all_tests_pass_with 'the horizontal wrapped in a navbar with :id' end #-- shared_examples_for 'the horizontal not wrapped in navbar' do specify 'returns nil' do expect(:horizontal).to generate nil end end shared_examples_for 'no horizontal options' do specify 'creates a