Skip to content

Instantly share code, notes, and snippets.

@jumanjiman
Forked from danielmorrison/user_steps.rb
Created June 28, 2012 20:09
Show Gist options
  • Save jumanjiman/3013618 to your computer and use it in GitHub Desktop.
Save jumanjiman/3013618 to your computer and use it in GitHub Desktop.
put in features/step_definitions/user_steps.rb
Given "I am signed in" do
user = User.create!(:email => 'alice@example.com' :password => 'password', :password_confirmation => 'password'
step 'I go to the homepage'
step 'I follow "Sign In"'
step %Q|I fill in "user_email" with "#{user.email}"|
step 'I fill in "user_password" with "password"'
step 'I press "Sign in"'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment