Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created July 7, 2010 22:38
Show Gist options
  • Save abuiles/467398 to your computer and use it in GitHub Desktop.
Save abuiles/467398 to your computer and use it in GitHub Desktop.
def account
@account ||= Factory.build(:account)
end
Given /^I have a valid account$/ do
account
# require 'rubygems'; require 'ruby-debug'; debugger
end
When /^I login$/ do
# require 'rubygems'; require 'ruby-debug'; debugger
fill_in('account_session_email', :with=> account.email)
fill_in('account_session_password', :with=>'password')
click_button("Log In")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment