Test/partials problem

hi,

i have a partial that works fine in my application but when i run
functional tests they fail when my partial references any locals that
I have passed in. if i change references to ‘locals’ in the partial to
have a @ prepended the tests run fine but it doesn’t work in the app.
any suggestions?

thanks,
mike

On 10/5/07, mike [email protected] wrote:

hi,

i have a partial that works fine in my application but when i run
functional tests they fail when my partial references any locals that
I have passed in. if i change references to ‘locals’ in the partial to
have a @ prepended the tests run fine but it doesn’t work in the app.
any suggestions?

Not enough info. Post your code and your tests.

Maybe use the debugger to analyze what is happening.

Bob S. wrote:

On 10/5/07, mike [email protected] wrote:

hi,

i have a partial that works fine in my application but when i run
functional tests they fail when my partial references any locals that
I have passed in. if i change references to ‘locals’ in the partial to
have a @ prepended the tests run fine but it doesn’t work in the app.
any suggestions?

Not enough info. Post your code and your tests.

Cool thanks. I haven’t had a chance to do anything about it but it
occurred to me what the problem was. The partial relies on a global
var that I forgot to make sure was set in one of my controllers.
Whenever a test like this fails it’s always such a great reassurance
of the value of testing. Thanks again for your input. -Mike