# Using Cucumber with Lockdown

**URL:** <https://www.ruby-forum.com/t/using-cucumber-with-lockdown/178040>\
**Category:** Rails\
**Created:** [October 28, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/using-cucumber-with-lockdown/178040 "2009-10-28T13:40:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![djanowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@djanowski](https://www.ruby-forum.com/u/djanowski)\
**Post date:** [October 28, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/using-cucumber-with-lockdown/178040/1 "2009-10-28T13:40:47Z")

</div>

Has anyone had any issues using Cucumber with Lockdown.

in the following scenario, I am logged in as an admin and so should have  
:all access rights, however I get the following error.

Authoriztion filed!  
prms: {“action”=\>“index”, “controller”=\>“admin”}  
session: {:expiry\_time=\>Wed Oct 28 13:33:43 +0000 2009,  
:access\_rights=\>[“user\_sessions/new”, “user\_sessions/create”,  
“users/new”, “users/create”], “flash”=\>{}, :return\_to=\>"/admin",  
:session\_id=\>“14  
ff27628c482546f0604f7d241c”} (SecurityError)

When I test it manually on the site everything works as expected.

---

<div class="post-metadata">

**Author:** ![djanowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@djanowski](https://www.ruby-forum.com/u/djanowski)\
**Post date:** [October 28, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/using-cucumber-with-lockdown/178040/2 "2009-10-28T16:15:31Z")

</div>

Sorry, my bad, I just noticed that I wasn’t logging the user in  
properly. It works now.
