Skip to content

Commit

Permalink
added spec for :join_with behaviour to links_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan0xC committed Aug 15, 2012
1 parent 620a8c3 commit e74d59c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/lib/simple_navigation/rendering/renderer/links_spec.rb
Expand Up @@ -51,6 +51,12 @@ def render(current_nav=nil, options={:level => :all})
HTML::Selector.new('a.selected').select(render).should be_empty
end
end

context 'with a custom seperator specified' do
it "should separate the items with the separator" do
HTML::Selector.new('div').select_first(render(:subnav1, :join_with => " | ")).to_s.split(" | ").should have(4).entries
end
end

end

Expand Down

0 comments on commit e74d59c

Please sign in to comment.