>
> If that works (display hello obviously) then it is something about
> your test files.  Empty one of the test files, and gradually build it
> back up until it starts to fail.  That will hopefully give us a clue
> as to what is going on.
>
> Colin

It did work. I've removed all the tests except story_test.rb which looks 
like

require 'test_helper'

class StoryTest < ActiveSupport::TestCase
  def test_should_be_valid_with_author
    s = Story.create(:author => 'neil', :title => 'Story', :body => 
'test')
    assert s.errors.on(:author)
  end
end

I get the same error as before until I remove the line

unit/story_test.rb

If I run

ruby test/unit/story_test.rb

I get

test/unit/story_test.rb:1:in `require': no such file to load -- 
test_helper (LoadError)
  from test/unit/story_test.rb:1

Could this be the problem, why can't it find test_helper.rb

Gleble

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to