# Goldberg breaks functional tests

**URL:** <https://www.ruby-forum.com/t/goldberg-breaks-functional-tests/166867>\
**Category:** Rails\
**Created:** [April 30, 2009, 10:46am UTC](https://www.ruby-forum.com/t/goldberg-breaks-functional-tests/166867 "2009-04-30T10:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Commander\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a8b319/32.png) [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Post date:** [April 30, 2009, 10:46am UTC](https://www.ruby-forum.com/t/goldberg-breaks-functional-tests/166867/1 "2009-04-30T10:46:40Z")

</div>

When you protect a controller/action with Goldberg, the functional tests  
for  
that controller will also fail by default.

Has anyone else had this gotcha, and maybe a way to fix it? Logging in  
the  
admin user before starting the test seems the most unobtrusive way …
