Sha256: ff94fabf053aebd62a01f5f8f7ed7360cae044cf861e7e99cb9084a663ce8af6
Contents?: true
Size: 985 Bytes
Versions: 4
Compression:
Stored size: 985 Bytes
Contents
require File.expand_path('../../../helper', __FILE__) describe 'Ramaze::Helper::Breadcrumb' do extend Ramaze::Helper::Breadcrumb it 'Build a set of breadcrumbs' do respond_to?('set_breadcrumbs').should == true respond_to?('get_breadcrumbs').should == true set_breadcrumbs('foo', 'bar', 'baz') breadcrumbs = get_breadcrumbs breadcrumbs.include?('foo').should == true breadcrumbs.include?('bar').should == true breadcrumbs.include?('baz').should == true breadcrumbs.include?('/').should == true end it 'Build a set of breadcrumbs with a custom separator' do respond_to?('set_breadcrumbs').should == true respond_to?('get_breadcrumbs').should == true set_breadcrumbs('foo', 'bar', 'baz') breadcrumbs = get_breadcrumbs('--') breadcrumbs.include?('foo').should == true breadcrumbs.include?('bar').should == true breadcrumbs.include?('baz').should == true breadcrumbs.include?('--').should == true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
zen-0.4.3 | spec/zen/helper/breadcrumb.rb |
zen-0.4.2 | spec/zen/helper/breadcrumb.rb |
zen-0.4.1 | spec/zen/helper/breadcrumb.rb |
zen-0.4 | spec/zen/helper/breadcrumb.rb |