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?
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?
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 => '[email protected]',
:password => 'bogus' }
The second is generated by this test:
post :attempt_login, { :user => { :email => '[email protected]',
: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.