# Question about functional tests and log/test.log

**URL:** <https://www.ruby-forum.com/t/question-about-functional-tests-and-log-test-log/58511>\
**Category:** Rails\
**Created:** [April 22, 2006, 11:54am UTC](https://www.ruby-forum.com/t/question-about-functional-tests-and-log-test-log/58511 "2006-04-22T11:54:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [April 22, 2006, 11:54am UTC](https://www.ruby-forum.com/t/question-about-functional-tests-and-log-test-log/58511/1 "2006-04-22T11:54:52Z")

</div>

Here’s something a bit weird:

After running functional tests, my test log contains many lines,  
including many like these:

> verified = ‘t’) LIMIT 1e[0m  
> Rendering layoutfalseactionlogin within layouts/application  
> Rendering user/login  
> Rendered user/\_login\_form (0.00581)  
> Completed in 0.03044 (32 reqs/sec) | Rendering: 0.01101 (36%) | DB:  
> 0.00777 (25%) | 200 OK [[http://test.host/user/attempt\_login](http://test.host/user/attempt_login)?  
> user=emailtmornini%40bogus.compasswordbogus]

> Rendering layoutfalseactionlogin within layouts/application  
> Rendering user/login  
> Rendered user/\_login\_form (0.00249)  
> Completed in 0.00948 (105 reqs/sec) | Rendering: 0.00599 (63%) |  
> DB: 0.00072 (7%) | 200 OK [[http://test.host/user/attempt\_login](http://test.host/user/attempt_login)?  
> user=emailtmornini%40bogus.compasswordbogus]

What is up with the URLs at the end of those lines?

These are both generated by this test:

```
 post :attempt_login, :user => { :email => 'removed_email_address@domain.invalid',
                                 :password => 'bogus' }

```

The second is generated by this test:

```
 post :attempt_login, { :user => { :email => 'removed_email_address@domain.invalid',
                                   :password => 'bogus' } }

```

Why is one test creating two entries?

Do those URLs mean anything? They appear to contain the POST parameters.  
However, upon inspection, they’re both the same even though the POST  
parameters are different!

And then there’s this:

Rendering layoutfalseactionlogin within layouts/application

What is going on there?

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [April 22, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/question-about-functional-tests-and-log-test-log/58511/2 "2006-04-22T13:25:30Z")

</div>

Tom M. wrote:

> Here’s something a bit weird:
> 
> What is up with the URLs at the end of those lines?
> 
> Why is one test creating two entries?
> 
> Do those URLs mean anything? They appear to contain the POST parameters.  
> However, upon inspection, they’re both the same even though the POST  
> parameters are different!
> 
> And then there’s this:
> 
> Rendering layoutfalseactionlogin within layouts/application
> 
> What is going on there?
> 
> –  
> – Tom M.

I wouldn’t worry about it too much, rails test logging isn’t entirely as  
clean as it should be. My tests show incorrect query string on post  
requests as well, but all the tests pass just fine. Your test.log looks  
completely normal to me.

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [April 22, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/question-about-functional-tests-and-log-test-log/58511/3 "2006-04-22T15:15:50Z")

</div>

On Sat, 2006-04-22 at 13:25 +0200, Alex W. wrote:

> > However, upon inspection, they’re both the same even though the POST
> 
> I wouldn’t worry about it too much, rails test logging isn’t entirely as  
> clean as it should be. My tests show incorrect query string on post  
> requests as well, but all the tests pass just fine. Your test.log looks  
> completely normal to me.

* * *

Rendering layoutfalseactionlogin suggests an error to me.

Craig
