Skip to content

Instantly share code, notes, and snippets.

@enriclluelles
Created February 29, 2012 14:18
Show Gist options
  • Select an option

  • Save enriclluelles/1941160 to your computer and use it in GitHub Desktop.

Select an option

Save enriclluelles/1941160 to your computer and use it in GitHub Desktop.
Role::LIST.each do |role|
Given "I am a logged admin with the role #{role}" do
@current_admin_user = Factory(:admin_user, :email => "#{role}@season.es", :password => 'contrasenya', :password_confirmation => 'contrasenya', :role => Role.find_or_create_by(kind: role))
login_as_admin(@current_admin_user)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment