Sha256: 203d121be6d95c0e39129e044eb214acdc27aa4815b91d42e600caf28c4590b3

Contents?: true

Size: 770 Bytes

Versions: 21

Compression:

Stored size: 770 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$/ do
  @user ||= Factory(:refinery_user)
  login
end

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

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

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

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

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

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

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
refinerycms-authentication-0.9.9.21 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.20 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.19 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.18 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.17 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.16 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.15 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.14 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.13 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.12 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.11 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.10 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.9 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.8 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.7 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.5 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.4 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.3 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.2 features/step_definitions/user_steps.rb
refinerycms-authentication-0.9.9.1 features/step_definitions/user_steps.rb