# Params, before\_filter and functional test

**URL:** <https://www.ruby-forum.com/t/params-before-filter-and-functional-test/108525>\
**Category:** Rails\
**Created:** [July 4, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/params-before-filter-and-functional-test/108525 "2007-07-04T12:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tachekent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Post date:** [July 4, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/params-before-filter-and-functional-test/108525/1 "2007-07-04T12:14:46Z")

</div>

hi there,  
I have a before\_filter which does some date formatting on create and  
update. This works fine live but it’s failing in the tests:

[http://pastie.caboo.se/75968](http://pastie.caboo.se/75968)

I’m not really sure why that would be the case. This is also my first  
proper attempt at writing tests - the value of which I’m immediately  
appreciating!

any help would be great, thanks
