This project is archived and is in readonly mode.
script/generate model creates wrong unit test file
-
Derek P.
so, the old rake-based version is broken now? :(
-
DHH
No, rake does the right thing. The -I is only needed when you run one-off with ruby alone.
-
shuber
I've been changing the require calls back to
require File.dirname(__FILE__) + '/../test_helper'so that I can still run the tests with TextMate's RubyMate
+1
-
Chris Cherry
This has been annoying me as well. This change doesn't alter other behavior, and allows the running of tests in TextMate!
+1
-
Jeremy Kemper
- State changed from incomplete to invalid
Fix TM to pass -Itest or use the rake test task.
-
Aliaksey Kandratsenka
In comment to http://github.com/rails/rails/co...
i proposed changing header to:
($: << File.expand_path(File.join(File.dirname(FILE), ".."))).uniq!
require ‘test_helper’
Another option is to generate full path to test_helper.rb and then #require it.
How about this ? I really hate creating separate emacs command to lauch tests.
