This project is archived and is in readonly mode.
Fixtures starting with "test_" run redundant unit tests
-
Pratik
- Assigned user set to Pratik
- State changed from new to invalid
I tried and it works fine for me. Could you please attach a patch or a failing test ?
Thanks.
-
hukl
The attached sample app worked for you ? I just downloaded it again and I still got the same exception. This is odd. A co worker of mine tried it on his linux getting the same problem. He even blogged about it:
http://tech.artcom.de/blog/?p=211
I really don't know what else to provide. Any ideas how to trace it?
-
Pratik
Nop, I generated a new Rails app from the edge and added a model called test_foo and tests/fixtures for it. It all worked.
Thanks!
-
hukl
Alright, its a rails 2.2.2 Problem then.
I just tried it with Edge/2.3 and its working indeed. Can be set to resolved then.
Thank you for looking at it!
-
Nobuhiro IMAI
Hmm, test works, but redundant test cases appear out of nowhere.
I hit this with TestResult, and found this ticket.$ rake test:units (in /tmp/foo) /usr/bin/ruby1.8 -I"lib:test" "/home/nov/gems/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/test_foo_test.rb" Loaded suite /home/nov/gems/gems/rake-0.8.7/lib/rake/rake_test_loader Started ........ Finished in 0.057495 seconds. 8 tests, 1 assertions, 0 failures, 0 errors ^^^^^^^ $ ruby -I test test/unit/test_foo_test.rb -v Loaded suite test/unit/test_foo_test Started test_foos(ActionController::IntegrationTest): . test_foos(ActionController::TestCase): . test_foos(ActionMailer::TestCase): . test_foos(ActionView::TestCase): . test_foos(ActiveRecord::TestCase): . test_foos(ActiveSupport::TestCase): . test_foos(TestFooTest): . test_the_truth(TestFooTest): . Finished in 0.066047 seconds. 8 tests, 1 assertions, 0 failures, 0 errorsIs this a right behavior?
-
Nobuhiro IMAI
- Title changed from Fixtures starting with "test_" will break unit tests to Fixtures starting with "test_" run redundant unit tests
- Tag changed from 2.2.2, actioncontroller, exceptions, fixtures, test, testing, tests, unit to 2.3.2, activerecord, fixtures, patch, test, testing, tests, unit
Patch attached. Does it make sense?
-
José Valim
- State changed from stale to invalid
