spec/integration/breadcrumb_trail_spec.rb in loaf-0.6.2 vs spec/integration/breadcrumb_trail_spec.rb in loaf-0.7.0

- old
+ new

@@ -55,6 +55,17 @@ within '#breadcrumbs .selected' do expect(page.html).to include('<a href="/posts/1/comments">Post comments</a>') end end + + it "allows for procs in name and url without supplying the controller" do + visit post_comments_path(1) + + within "#breadcrumbs .selected" do + expect(page.html).to include( + '<a href="/posts/1/comments?no_controller=true">'\ + "Post comments No Controller</a>" + ) + end + end end