How to add a helper in a functional test

Hi,

I’m struggling a bit in testing some ajax calls. My problem is that I
don’t know how to include a helper in a functional TestCase class.

Does anyone know how to do that?

Thanks

Fernando P. wrote:

Hi,

I’m struggling a bit in testing some ajax calls. My problem is that I
don’t know how to include a helper in a functional TestCase class.

Does anyone know how to do that?

Avoid functional tests entirely. Use Cucumber features instead.
Problem solved.

Thanks

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Fernando P. wrote:

Avoid functional tests entirely. Use Cucumber features instead.
Problem solved.
Whaaat???

I forced myself in using Rspec because everybody was talking about it. I
hated that experience.

I forced myself in using Cucumber because everybody was talking about
it. I hated that experience even more.

So I got back to test:unit and its functional tests. My whole test suite
ran 20% faster and I achieve almost 100% code coverage (cucumber is just
so sloooooooow by the way). Only in very rare occasions and on very
specific areas I run into ‘glitches’ lie this one.

But no! Never! I will never go back to rspec or cucumber. That’s the
worst piece of advice I have ever heard.

Then you will continue to have problems with clunky functional tests.
That’s life. I’m sorry I tried to help.

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Avoid functional tests entirely. Use Cucumber features instead.
Problem solved.
Whaaat???

I forced myself in using Rspec because everybody was talking about it. I
hated that experience.

I forced myself in using Cucumber because everybody was talking about
it. I hated that experience even more.

So I got back to test:unit and its functional tests. My whole test suite
ran 20% faster and I achieve almost 100% code coverage (cucumber is just
so sloooooooow by the way). Only in very rare occasions and on very
specific areas I run into ‘glitches’ lie this one.

But no! Never! I will never go back to rspec or cucumber. That’s the
worst piece of advice I have ever heard.