Sha256: ea2a47aec5fd3688374323527ee765e41a12e8b8e815e9a3e3b8207eddd145f2

Contents?: true

Size: 880 Bytes

Versions: 11

Compression:

Stored size: 880 Bytes

Contents

def login
  visit new_user_session_path
  fill_in("user_login", :with => @user.email)
  fill_in("user_password", :with => 'greenandjuicy')
  click_button("submit_button")
end

Given /^I am a logged in refinery user$/i do
  @user ||= Factory(:refinery_user)
  login
end

Given /^I am a logged in refinery translator$/i do
  @user ||= Factory(:refinery_translator)
  login
end

Given /^I am a logged in customer$/i do
  @user ||= Factory(:user)
  login
end

Given /^A Refinery user exists$/i do
  @refinery_user ||= Factory(:refinery_user)
end

Given /^I have a user named "(.*)"$/ do |name|
  Factory(:user, :username => name)
end

Given /^I have a refinery user named "(.*)"$/i do |name|
  Factory(:refinery_user, :username => name)
end

Given /^I have no users$/i do
  User.delete_all
end

Then /^I should have ([0-9]+) users?$/i do |count|
  User.count.should == count.to_i
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-authentication-1.0.11 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.10 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.9 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.8 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.7 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.5 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.4 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.3 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.1 features/step_definitions/user_steps.rb
refinerycms-authentication-1.0.0 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.22 features/step_definitions/user_steps.rb