Sha256: 162294c7aef99818e185b590dbc8156fab077be06539182816c7c566e1214c7c

Contents?: true

Size: 658 Bytes

Versions: 9

Compression:

Stored size: 658 Bytes

Contents

def login
  visit new_session_url
  fill_in("session_login", :with => @user.email)
  fill_in("session_password", :with => @user.password)
  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, :login => 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

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-0.9.8.9 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.8 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.7 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.6 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.5 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.4 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.3 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.2 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb
refinerycms-0.9.8.1 vendor/refinerycms/authentication/features/step_definitions/user_steps.rb