Implement user registration feature

* Add users/new action and view
* Add users/create action
* Add link to sign up in sign in page
This commit is contained in:
Thibault Jouan
2011-09-06 20:46:01 +00:00
parent d2f4ea59ff
commit 1057cab009
9 changed files with 143 additions and 0 deletions

View File

@@ -23,4 +23,9 @@ describe 'sessions/new.html.haml' do
rendered.should \
have_selector('label[for=session_password]', :text => 'Password')
end
it 'renders a link to the sign in page' do
render
rendered.should have_selector("a[href='#{new_user_path}']", :text => 'Sign up')
end
end