Skip to content

Instantly share code, notes, and snippets.

@ludicast
Created August 30, 2010 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ludicast/557078 to your computer and use it in GitHub Desktop.
Save ludicast/557078 to your computer and use it in GitHub Desktop.
def creating_a_user
@user = Factory.build @user
fill_in "user[email]", :with => @user.email
click_button "Create"
end
on_following_link_to new_user_path do
where :creating_a_user do
specify { page.should have_content(@user.email) }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment