Skip to content

Instantly share code, notes, and snippets.

@ludicast
Created Aug 30, 2010
Embed
What would you like to do?
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