From be9bc4ba4d15cea910bef5b578f1e586b2c3d3f7 Mon Sep 17 00:00:00 2001 From: Skud Date: Mon, 12 Aug 2013 10:48:06 +1000 Subject: [PATCH] added 'Places' to top nav --- app/views/layouts/_header.html.haml | 1 + spec/views/layouts/_header_spec.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml index 07c664a35..93a03ac51 100644 --- a/app/views/layouts/_header.html.haml +++ b/app/views/layouts/_header.html.haml @@ -10,6 +10,7 @@ %ul.nav %li= link_to "Crops", crops_path %li= link_to "Seeds", seeds_path + %li= link_to "Places", places_path %li.dropdown< %a.dropdown-toggle{'data-toggle' => 'dropdown', :href => members_path} Community diff --git a/spec/views/layouts/_header_spec.rb b/spec/views/layouts/_header_spec.rb index 0c287aa8a..a89abd174 100644 --- a/spec/views/layouts/_header_spec.rb +++ b/spec/views/layouts/_header_spec.rb @@ -24,6 +24,10 @@ describe 'layouts/_header.html.haml', :type => "view" do rendered.should contain "Seeds" end + it 'has a Places link' do + rendered.should contain "Places" + end + it 'has a Community section' do rendered.should contain "Community" end