On 12 November 2010 17:49, Marnen Laibow-Koser <[email protected]> wrote:
> Ben Porterfield wrote in post #960978:
>> Trying to run unit test in a new rails 3 project.
>
> RSpec's a lot nicer; I'd recommend that instead.  But...
>
>> When I follow
>> instructions recommended by ruby on rails guides page
>> (http://guides.rubyonrails.org/testing.html)
>
> How are you following those instructions?  I think that page recommends
> using the rake tasks, not running the tests as you've indicated.

The OP is correct, section 3.2 of the guide shows tests being run
directly by ruby (without -I)

Colin

>
>> I get the following:
>>
>> ruby test/unit/schedule_weekly_test.rb
>> <internal:lib/rubygems/custom_require>:29:in `require': no such file to
>> load -- test_helper (LoadError)
>>
>> After much googling, everyone seems to recommend that the 'fix' is to
>> run a test like so:
>>
>> ruby -I test test/unit/whatever.rb

-- 
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