# Integration Tests

**URL:** <https://www.ruby-forum.com/t/integration-tests/171248>\
**Category:** Rails\
**Created:** [June 29, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/integration-tests/171248 "2009-06-29T15:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 29, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/integration-tests/171248/1 "2009-06-29T15:54:27Z")

</div>

I’m having trouble with Rails Integrations tests on Rails 2.3 not  
setting the query string on post actions. I’m testing a rails metal  
so when the env[“QUERY\_STRING”] variable isn’t set, in the test, the  
metal doesn’t get any of the query string params. For some reason  
this is only set on a GET request. The url I am posting to (/action?  
key=something) is perfectly valid and should have env[‘QUERY\_STRING’]  
set to ‘key=something’

Is there something I’m missing or that I should be doing differently?
