adding the user controller for futzing with login bits

This commit is contained in:
Dan Buch 2011-08-09 21:43:23 -04:00
parent 6f9519fce9
commit 7ca80880a8
9 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,14 @@
class UserController < ApplicationController
def login
end
def process_login
end
def logout
end
def my_account
end
end

View File

@ -0,0 +1,2 @@
module UserHelper
end

View File

@ -0,0 +1,2 @@
<h1>User#login</h1>
<p>Find me in app/views/user/login.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>User#logout</h1>
<p>Find me in app/views/user/logout.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>User#my_account</h1>
<p>Find me in app/views/user/my_account.html.erb</p>

View File

@ -0,0 +1,2 @@
<h1>User#process_login</h1>
<p>Find me in app/views/user/process_login.html.erb</p>

View File

@ -1,4 +1,12 @@
Hodgepodge::Application.routes.draw do
get "user/login"
get "user/process_login"
get "user/logout"
get "user/my_account"
get "people/list"
get "foo/pretty"

View File

@ -0,0 +1,24 @@
require 'test_helper'
class UserControllerTest < ActionController::TestCase
test "should get login" do
get :login
assert_response :success
end
test "should get process_login" do
get :process_login
assert_response :success
end
test "should get logout" do
get :logout
assert_response :success
end
test "should get my_account" do
get :my_account
assert_response :success
end
end

View File

@ -0,0 +1,4 @@
require 'test_helper'
class UserHelperTest < ActionView::TestCase
end