Sha256: ed0c239b68318260b1b7fb02b2ed93056fe60aead96c2d9e0ae7b5622fa3f37f
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crowdblog-0.0.16 | features/step_definitions/global_steps.rb |