Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing a story step

  • Loading branch information...
commit 318aa4a8f5df49eea07eac11b3bf65a05aa3dd13 1 parent 6eda38b
Simon Menke fd authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 features/step_definitions/user_steps.rb
8 features/step_definitions/user_steps.rb
View
@@ -1,13 +1,9 @@
-Given /^a user with login "(.+)" and password "(.+)"$/ do |login, password|
+Given /^a user with login "(.+)"(?: and password "(.+)")$/ do |login, password|
+ password ||= "password"
@user = Factory(:user, :login => login, :password => password, :password_confirmation => password)
end
-Given /^a user with login "(.+)"$/ do |login|
- @user = Factory(:user, :login => login,
- :password => "password", :password_confirmation => "password")
-end
-
Given /^a user is logged in as "(.*)"$/ do |login|
@current_user = User.create!(
:name => login,
Please sign in to comment.
Something went wrong with that request. Please try again.