Sha256: c85cfbdce6acc3d395e846e0840fb02b73a5a1612b73ec84b31d153198c84877
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
require 'spec_helper' describe "crumbs routing" do include ActionView::TestCase::Behavior context 'setting home breadcrumb' do it 'should inherit crumb for the root path' do visit root_path within '#breadcrumbs' do page.should have_content("Home") end end end context 'inheriting breadcrumbs setup' do it "should inherit root crumb for index action posts#index" do visit posts_path within '#breadcrumbs' do page.should have_content 'Home' page.should have_content 'All Posts' page.should_not have_content 'New Post' end end it 'should' do visit new_post_path within '#breadcrumbs' do page.should have_content 'All Posts' page.should have_content 'New Post' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loaf-0.2.0 | spec/integration/crumbs_routing_spec.rb |