Permalink
Browse files

Added Side Menus

Added all known side-menus to date

[ticket: X]
  • Loading branch information...
1 parent 065142a commit 40869091460aaafbcbc7823a6e09efb39e7d51d3 @tscholiadis committed Nov 23, 2011
Showing with 0 additions and 101 deletions.
  1. +0 −101 \
View
101 \
@@ -1,101 +0,0 @@
-require 'spec_helper'
-
-describe "LayoutLinks" do
-
- describe "when not logged in" do
-
- it "'Home' should request for log in" do
- visit root_path
- response.should have_selector("h1", :content => "Log in")
- end
-
- it "'About' should request for log in" do
- visit about_path
- response.should have_selector("h1", :content => "About")
- end
-
- it "'Contactus' should request for log in" do
- visit contactus_path
- response.should have_selector("h1", :content => "Contact Us")
- end
-
- it "'Bulkers' should request for log in" do
- visit bulkers_path
- response.should have_selector("h1", :content => "Log in")
- end
-
- it "'Tankers' should request for log in" do
- visit tankers_path
- response.should have_selector("h1", :content => "Log in")
- end
-
- it "'Gas' should request for log in" do
- visit gas_path
- response.should have_selector("h1", :content => "Log in")
- end
-
- it "'Containers' should request for log in" do
- visit containers_path
- response.should have_selector("h1", :content => "Log in")
- end
-
- it "'Sandp' should request for log in" do
- visit sandp_path
- response.should have_selector("h1", :content => "Log in")
- end
-
- it "'Newbuildings' should request for log in" do
- visit newbuildings_path
- response.should have_selector("h1", :content => "Log in")
- end
-
- it "'Demolition' should request for log in" do
- visit demolition_path
- response.should have_selector("h1", :content => "Log in")
- end
- end
-
- describe "when logged in" do
-
- before(:each) do
- @user = Factory(:user, :department => Factory(:department))
- visit login_path
- fill_in :username, :with => @user.username
- fill_in :password, :with => @user.password
- click_button
- end
-
- it "should have a 'log out' link" do
- visit root_path
- response.should have_selector("a", :href => logout_path,
- :content => "Log out")
- end
-
- it "should have the right links on the layout" do
- visit root_path
- response.should have_selector('title', :content => "Home")
- click_link "Home"
- response.should have_selector('title', :content => "Home")
- click_link "About"
- response.should have_selector('title', :content => "About")
- click_link "Contact Us"
- response.should have_selector('title', :content => "Contact Us")
- click_link "Bulkers"
- response.should have_selector('title', :content => "Bulkers")
- click_link "Tankers"
- response.should have_selector('title', :content => "Tankers")
- click_link "Gas"
- response.should have_selector('title', :content => "Gas")
- click_link "Containers"
- response.should have_selector('title', :content => "Containers")
- click_link "S&P"
- response.should have_selector('title', :content => "S&P")
- click_link "Newbuildings"
- response.should have_selector('title', :content => "Newbuildings")
- click_link "Demolition"
- response.should have_selector('title', :content => "Demolition")
- click_link "Admin"
- response.should have_selector('title', :content => "Admin")
- end
- end
-end

0 comments on commit 4086909

Please sign in to comment.