Problem with test file for latest ruby on rails

View: New views
1 Messages — Rating Filter:   Alert me  

Problem with test file for latest ruby on rails

by Srinath A. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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?
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---