Sha256: ea8d8ad974f8a0b897b2610c77a7d92ed6b053ee905eb31c9401b399bdcee68d
Contents?: true
Size: 654 Bytes
Versions: 3
Compression:
Stored size: 654 Bytes
Contents
require "#{File.dirname(__FILE__)}/../spec_helper" describe Bonsai::Navigation do it "should respond to tree" do Bonsai::Navigation.should respond_to :tree end before do @tree = Bonsai::Navigation.tree @about = Bonsai::Page.find("about-us") @products = Bonsai::Page.find("products") end it "should contain 2 items" do @tree.should be_an_instance_of(Array) @tree.size.should == 3 end it "should contain about and products" do @tree.should include @about @tree.should include @products end it "should be ordered" do @tree.first.should == @about @tree.last.should == @products end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bonsai-1.1.0 | spec/bonsai/navigation_spec.rb |
bonsai-1.0.1 | spec/bonsai/navigation_spec.rb |
bonsai-1.0.0 | spec/bonsai/navigation_spec.rb |