So - we have a few constants we use in testing. They're used for both functional and integration tests (and some of the unit tests too), so we've pulled them into ActiveSupport::TestCase in a test helper file.<br><br>
This works fine when you run, say, just "rake test:X" (where X is units/functionals etc), but when you run just "rake test" it complains that I've defined them twice.<br><br>We've since added an "if defined?(CONST_NAME)" to the end of each one - which cuts the warnings nicely... but I was thinking that surely there's a way to make sure that it's all only loaded once.<br>
<br>Does anybody know?<br><br>thanks in advance,<br>Taryn<br>