# Problem with test file for latest ruby on rails

**URL:** <https://www.ruby-forum.com/t/problem-with-test-file-for-latest-ruby-on-rails/144037>\
**Category:** Rails\
**Created:** [July 24, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/problem-with-test-file-for-latest-ruby-on-rails/144037 "2008-07-24T20:49:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ror\_arch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Post date:** [July 24, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/problem-with-test-file-for-latest-ruby-on-rails/144037/1 "2008-07-24T20:49:16Z")

</div>

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?
