I have two unit tests that works fine if I run them individually.
ex: ruby test/unit/company_test.rb
Loaded suite test/unit/company_test
Finished in 0.037888 seconds.
3 tests, 7 assertions, 0 failures, 0 errors
However, if I run ‘rake test:units’ the same test as above fails with:
is not true.
My test is:
company = companies(:test_company)
Why would it work from ruby and not rake? I have one other test that
fails the same way.