I downloaded the latest rails from the website and it gives the
following test file:
require ‘test_helper’
class ArticleTest < ActiveSupport::TestCase
Replace this with your real tests.
def test_truth
assert true
end
end
that is it!
Now when I run the above I get the error message:
C:\ruby\econstructor>ruby test\unit\article_test.rb
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require': no such file to load -- test_helper (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require’
from test/unit/article_test.rb:1
–
I know previously when the test were generated we would get a file that
had the following line ontop :
require File.dirname(FILE) + ‘/…/test_helper’
So why is that line removed? its removal is giving me errors when I
install afresh…
also I wish there was a way of having a rails app transferred to another
machine (a fresh one) and have the gems installed automatically instead
of going down a list and installing them one by one.
What do you think?