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

@@ -21,3 +21,15 @@ When /^I submit valid credentials$/ do
fill_in('Password', :with => user.password)
click_button('Sign in')
end
When /^I follow the sign up link$/ do
click_link('Sign up')
end
When /^I fill in the sign up form$/ do
@user = Factory.build(:user)
fill_in('Email', :with => @user.email)
fill_in('Password', :with => @user.password)
fill_in('Password confirmation', :with => @user.password)
click_button('Sign up')
end