Sha256: 86011f10d2a9c3d7e479f051effb64be724a0c59e30d09a5e1b36f1aa0865631
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
Given /^I am (.*)$/ do |name| ApplicationController.reset_current_user ApplicationController.current_user.login = name.downcase end Given /^I have no roles$/ do ApplicationController.reset_current_user end Given /^I have the role (.*)$/ do |role| Given "I have no roles" ApplicationController.current_user.roles << role.to_sym end Then /^I should be authorized$/ do response.should be_authorized end Then /^I should not be authorized$/ do response.should be_unauthorized end When /^There is no current user$/ do ApplicationController.nil_current_user end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jrun-rails_doorman-0.0.1 | features/step_definitions/common_steps.rb |
rails-doorman-0.1.0 | features/step_definitions/common_steps.rb |