When /^I visit the user welcome page$/ do visit user_welcome_path(:token => @welcome_token) end Given /^the user welcome token is set$/ do @welcome_token = User.set_reset_token(@user.email).reset_token end Given /^the welcome token is blank$/ do @welcome_token = "" end Given /^the welcome token is invalid$/ do @welcome_token = "invalid" end