Sha256: e69e07642f7b8beabfbb5bf35ac7875eb72b6bdacc01e507ba6c75a0e3d5473e

Contents?: true

Size: 640 Bytes

Versions: 13

Compression:

Stored size: 640 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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
crowdblog-0.0.15 features/step_definitions/global_steps.rb
crowdblog-0.0.14 features/step_definitions/global_steps.rb
crowdblog-0.0.13 features/step_definitions/global_steps.rb
crowdblog-0.0.12 features/step_definitions/global_steps.rb
crowdblog-0.0.10 features/step_definitions/global_steps.rb
crowdblog-0.0.9 features/step_definitions/global_steps.rb
crowdblog-0.0.8 features/step_definitions/global_steps.rb
crowdblog-0.0.7 features/step_definitions/global_steps.rb
crowdblog-0.0.6 features/step_definitions/global_steps.rb
crowdblog-0.0.5 features/step_definitions/global_steps.rb
crowdblog-0.0.4 features/step_definitions/global_steps.rb
crowdblog-0.0.3 features/step_definitions/global_steps.rb
crowdblog-0.0.2 features/step_definitions/global_steps.rb