Sha256: b46153873a4c3b4884d1f34a1ecab5213a84455007624263d247f337cc886094

Contents?: true

Size: 825 Bytes

Versions: 7

Compression:

Stored size: 825 Bytes

Contents

Given /^I am not logged in$/ do
  visit '/logout'
end

Given /^I am logged in$/ do
  <%= file_name %> = <%= class_name %>.make
  visit '/login'
  fill_in 'login', :with => <%= file_name %>.login
  fill_in 'password', :with => <%= file_name %>.password
  click_button 'Log in'
end

Then /^I should not be logged in$/ do
  controller.current_<%= file_name %>.should be_nil
end

Then /^I should be logged in$/ do
  controller.current_<%= file_name %>.should_not be_nil
end

Given /^someone with the login "([^\"]*)" already exists$/ do |login|
  <%= class_name %>.make(:login => login)
end

Then /^I should have a remember token$/ do
  controller.current_<%= file_name %>.remember_token.should_not be_nil
end

Then /^I should not have a remember token$/ do
  controller.current_<%= file_name %>.remember_token.should be_nil
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jeremydurham-restful_authentication-1.1.7 generators/authenticated/templates/features/step_definitions/user_steps.rb
restful_authentication-1.1.6 generators/authenticated/templates/features/step_definitions/user_steps.rb
jeremydurham-restful_authentication-1.1.6 generators/authenticated/templates/features/step_definitions/user_steps.rb
jeremydurham-restful_authentication-1.1.5 generators/authenticated/templates/features/step_definitions/user_steps.rb
jeremydurham-restful_authentication-1.1.4 generators/authenticated/templates/features/step_definitions/user_steps.rb
jeremydurham-restful_authentication-1.1.3 generators/authenticated/templates/features/step_definitions/user_steps.rb
jeremydurham-restful_authentication-1.1.2 generators/authenticated/templates/features/step_definitions/user_steps.rb