Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: tscholiadis/intermodal_app
base: 065142a2a8
...
head fork: tscholiadis/intermodal_app
compare: bcceb779a0
  • 2 commits
  • 17 files changed
  • 0 commit comments
  • 1 contributor
Commits on Nov 23, 2011
Theo Scholiadis Added Side Menus
Added all known side-menus to date

[ticket: X]
4086909
Theo Scholiadis Added Forgotted Side menu files
Added forgotted side menu files

[ticket: X]
bcceb77
101 \
View
@@ -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
1  app/views/pages/_admin_menu.html.haml
View
@@ -1,4 +1,5 @@
%nav#side_nav
%ul
+ %li= link_to "Reports", "#"
%li= link_to "Users", users_path
%li= link_to "Departments", departments_path
10 app/views/pages/_bulkers_menu.html.haml
View
@@ -0,0 +1,10 @@
+%nav#side_nav
+ %ul
+ %li= link_to "General", "#"
+ %li= link_to "VLOC", "#"
+ %li= link_to "Cape", "#"
+ %li= link_to "Post Pmax", "#"
+ %li= link_to "Panamax", "#"
+ %li= link_to "Smax/Hmax", "#"
+ %li= link_to "Handy", "#"
+ %li= link_to "Mini", "#"
8 app/views/pages/_containers_menu.html.haml
View
@@ -0,0 +1,8 @@
+%nav#side_nav
+ %ul
+ %li= link_to "General", "#"
+ %li= link_to "Panamax", "#"
+ %li= link_to "Sub Pmax", "#"
+ %li= link_to "Feedermax", "#"
+ %li= link_to "Feeder", "#"
+ %li= link_to "Feeder <500", "#"
9 app/views/pages/_demolition_menu.html.haml
View
@@ -0,0 +1,9 @@
+%nav#side_nav
+ %ul
+ %li= link_to "General", "#"
+ %li= link_to "India", "#"
+ %li= link_to "Bangladesh", "#"
+ %li= link_to "Pakista", "#"
+ %li= link_to "China", "#"
+ %li= link_to "Turkey", "#"
+ %li= link_to "Other", "#"
3  app/views/pages/_gas_menu.html.haml
View
@@ -0,0 +1,3 @@
+%nav#side_nav
+ %ul
+ %li= link_to "General", "#"
3  app/views/pages/_newbuildings_menu.html.haml
View
@@ -0,0 +1,3 @@
+%nav#side_nav
+ %ul
+ %li= link_to "General", "#"
3  app/views/pages/_sandp_menu.html.haml
View
@@ -0,0 +1,3 @@
+%nav#side_nav
+ %ul
+ %li= link_to "General", "#"
11 app/views/pages/_tankers_menu.html.haml
View
@@ -0,0 +1,11 @@
+%nav#side_nav
+ %ul
+ %li= link_to "General", "#"
+ %li= link_to "VLCC", "#"
+ %li= link_to "Suezmax", "#"
+ %li= link_to "Afra/LR2", "#"
+ %li= link_to "Pmax/LR1", "#"
+ %li= link_to "MR", "#"
+ %li= link_to "Handy", "#"
+ %li= link_to "Small", "#"
+ %li= link_to "Chemical", "#"
3  app/views/pages/bulkers.html.haml
View
@@ -1,2 +1,3 @@
%h1 Bulkers
-%p This page contains all bulkers information
+= render 'pages/bulkers_menu'
+.content
3  app/views/pages/containers.html.haml
View
@@ -1,2 +1,3 @@
%h1 Containers
-%p This page contains all containers information
+= render 'pages/containers_menu'
+.content
3  app/views/pages/demolition.html.haml
View
@@ -1,2 +1,3 @@
%h1 Demolition
-%p This page contains the Demolition information
+= render 'pages/demolition_menu'
+.content
3  app/views/pages/gas.html.haml
View
@@ -1,2 +1,3 @@
%h1 Gas
-%p This page contains all gas information
+= render 'pages/gas_menu'
+.content
3  app/views/pages/newbuildings.html.haml
View
@@ -1,2 +1,3 @@
%h1 Newbuildings
-%p This page contains the Newbuildings information
+= render 'pages/newbuildings_menu'
+.content
3  app/views/pages/sandp.html.haml
View
@@ -1,2 +1,3 @@
%h1 S&P
-%p This page contains the S&P information
+= render 'pages/sandp_menu'
+.content
3  app/views/pages/tankers.html.haml
View
@@ -1,2 +1,3 @@
%h1 Tankers
-%p This page contains all the tankers information
+= render 'pages/tankers_menu'
+.content
63 spec/requests/section_menu_links_spec.rb
View
@@ -61,4 +61,67 @@
end
end
end
+
+ describe "Bulkers Section" do
+
+ describe "when not logged in" do
+ end
+
+ describe "when logged in" do
+ end
+ end
+
+ describe "Tankers Section" do
+
+ describe "when not logged in" do
+ end
+
+ describe "when logged in" do
+ end
+ end
+
+ describe "Gas Section" do
+
+ describe "when not logged in" do
+ end
+
+ describe "when logged in" do
+ end
+ end
+
+ describe "Containers Section" do
+
+ describe "when not logged in" do
+ end
+
+ describe "when logged in" do
+ end
+ end
+
+ describe "S&P Section" do
+
+ describe "when not logged in" do
+ end
+
+ describe "when logged in" do
+ end
+ end
+
+ describe "Newbuildings Section" do
+
+ describe "when not logged in" do
+ end
+
+ describe "when logged in" do
+ end
+ end
+
+ describe "Demolition Section" do
+
+ describe "when not logged in" do
+ end
+
+ describe "when logged in" do
+ end
+ end
end

No commit comments for this range

Something went wrong with that request. Please try again.