diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-21 12:38:45 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-25 19:39:37 +0200 |
commit | 3528b3980c2316dfc163f950df571d732431df15 (patch) | |
tree | e01471322bbcc25eb0a399acf8faf6b5864671fa /features/step_definitions | |
parent | Support for mentor comments (diff) | |
download | recruiting-webapp-3528b3980c2316dfc163f950df571d732431df15.tar.gz recruiting-webapp-3528b3980c2316dfc163f950df571d732431df15.tar.bz2 recruiting-webapp-3528b3980c2316dfc163f950df571d732431df15.zip |
Added nick to user model
Nicks must be unique. Mentors and recruiters must have nicks.
Diffstat (limited to 'features/step_definitions')
-rw-r--r-- | features/step_definitions/users_steps.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/step_definitions/users_steps.rb b/features/step_definitions/users_steps.rb index dee6e1d..7bc1a4d 100644 --- a/features/step_definitions/users_steps.rb +++ b/features/step_definitions/users_steps.rb @@ -2,7 +2,7 @@ Given /^user "([^\"]*)"$/ do |user_name| @user = User.find_by_name(user_name) if @user.nil? @user = User.create!( :name => user_name, :email_address => "#{user_name}@users.org", - :password => "secret", :password_confirmation => "secret") + :password => "secret", :password_confirmation => "secret", :nick => user_name) end end |