Permalink
Browse files

A Navigation feature is green.

  • Loading branch information...
ffbit committed Nov 2, 2011
1 parent c13e00b commit e5a37cf788c003fd2f9cfe470f45e843b61fe9ff
@@ -0,0 +1,3 @@
+<%= link_to 'Sign up', signup_path %>
+<%= link_to 'Sign in', signin_path %>
+<%= link_to 'Home', root_path %>
@@ -8,6 +8,7 @@
</head>
<body>
<%= render 'layouts/flash_messages' %>
+ <%= render 'layouts/header_links' %>
<%= yield %>
</body>
View
@@ -10,14 +10,17 @@
devise_for :users, :skip => [:registrations, :sessions, :password] do
# registrations
get 'signup' => 'devise/registrations#new', :as => :new_user_registration
+ get 'signup' => 'devise/registrations#new', :as => :signup
post 'signup' => 'devise/registrations#create', :as => :user_registration
get 'users/edit' => 'devise/registrations#edit', :as => :edit_user_registration
put 'users' => 'devise/registrations'
- # sign up-out
+ # sign in-out
get 'signin' => 'devise/sessions#new', :as => :new_user_session
+ get 'signin' => 'devise/sessions#new', :as => :signin
post 'signin' => 'devise/sessions#create', :as => :user_session
get 'signout' => 'devise/sessions#destroy', :as => :destroy_user_session
+ get 'signout' => 'devise/sessions#destroy', :as => :signout
end
devise_scope :user do
@@ -0,0 +1,11 @@
+@navigation
+Feature: Navigation
+ In order to have public links
+ As a visitor
+ I want to follow them
+
+ Scenario: Home Page
+ Given I'm on the home page
+ Then I should see "Sign up" link
+ And I should see "Sign in" link
+ And I should see "Home" link

0 comments on commit e5a37cf

Please sign in to comment.