spec/unit/helpers/navigation_spec.rb in facades-1.0.0 vs spec/unit/helpers/navigation_spec.rb in facades-1.0.1

- old
+ new

@@ -130,12 +130,26 @@ end it 'adds any options passed to the wrapping list' do rendered.should have_xpath('//ul', :id => 'main_nav_list') end - - end # options + end + context 'when setting :wrapper to false' do + + before do + assign(:options, { + :wrapper => false + }) + render('navigation/single_list') + end + + it 'does not render the wrapping nav tag' do + rendered.should_not( + have_selector('nav') + ) + end + end end describe 'links matching request.path' do before do \ No newline at end of file