Given /^(?:|I )am signed in as (Test|Publisher) User$/ do |user_type| step "#{user_type} User exists" @current_user.authentication_token.should be_present visit crowdblog_path + "?auth_token=#{@current_user.authentication_token}" end Given /^(?:|the )Test User exists$/ do @current_user = Crowdblog::User.find_by_email('test@crowdint.com') @current_user = Fabricate(:user_test) unless @current_user end Given /^(?:|the )Publisher User exists$/ do @current_user = Crowdblog::User.find_by_email('publisher@crowdint.com') @current_user = Fabricate(:user_publisher) unless @current_user @publisher_user = @current_user end Then /^show me the page$/ do save_and_open_page end