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?
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?
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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.