Skip to content

Instantly share code, notes, and snippets.

@panSarin
Created January 17, 2012 17:31
Show Gist options
  • Save panSarin/1627691 to your computer and use it in GitHub Desktop.
Save panSarin/1627691 to your computer and use it in GitHub Desktop.
admin login helper
def login_admin(admin)
visit admin_page
fill :email => admin.email
fill :password => admin.password
click_button "Login"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment