Skip to content

Instantly share code, notes, and snippets.

@ess
Last active December 30, 2015 09:39
Show Gist options
  • Save ess/7811032 to your computer and use it in GitHub Desktop.
Save ess/7811032 to your computer and use it in GitHub Desktop.
Given %{I am a signed in user} do
email = memorize_fact(
:user_email,
Faker::Internet.email
)
password = memorize_fact(
:user_password,
%{they'retrashingourrightstrashingtrashing}
)
User.create(email: email, password: password)
sign_in(email, password)
end
When %{I expand the user widget} do
click_link(recall_fact(:user_email))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment