anti-require?

G

Giles Bowkett

Is there something like "unrequire"? test/unit is being loaded by a
slightly spaghetti Rails app and I want to eliminate that. It's giving
me a "0 test, 0 assertions" footer on every page load in dev and
driving me nuts. The problem doesn't exist in production, just
somewhere in dev, and I don't have time to fix it right away.
 
E

Eric Hodel

Is there something like "unrequire"? test/unit is being loaded by a
slightly spaghetti Rails app and I want to eliminate that. It's giving
me a "0 test, 0 assertions" footer on every page load in dev and
driving me nuts. The problem doesn't exist in production, just
somewhere in dev, and I don't have time to fix it right away.

There's a few places in Rails where they mean to require 'test/unit/
assertions' (or some other file) but instead require 'test/unit'.
Switch the offending lines and you should be good.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,219
Messages
2,571,118
Members
47,737
Latest member
CarleyHarm

Latest Threads

Top