spec/features/main_navigation_spec.rb in blacklight-spotlight-0.3.1 vs spec/features/main_navigation_spec.rb in blacklight-spotlight-0.4.1

- old
+ new

@@ -37,6 +37,16 @@ it "should have the configured browse page label visible in the breadcrumb of the browse show page" do visit spotlight.exhibit_browse_path(exhibit, exhibit.searches.first) expect(page).to have_content("New Browse Label") expect(page).to have_css(".breadcrumb li", text: "New Browse Label") end + it 'should not display any main navigation menu items that are configured to not display' do + about_nav = exhibit.main_navigations.about + about_nav.display = false + about_nav.save + visit spotlight.exhibit_path(exhibit) + expect(page).to_not have_css(".navbar-nav li", text: "New About Label") + about_nav = exhibit.main_navigations.about + about_nav.display = true + about_nav.save + end end \ No newline at end of file