On 21 November 2010 16:53, Frederick Cheung <[email protected]> wrote: > > > On Nov 21, 3:46 pm, Neil Bye <[email protected]> wrote: >> Colin Law wrote in post #962955: >> >> I've attached test_help.rb Had to go to /vendor/railties/lib to find >> it, is that right? >> >> >> >> > You have not mentioned it but I presume your app runs ok? If not then >> > post environment.rb also. >> >> Yes it works fine. > > My guess is that somewhere in your app you have a ruby script > (probably called index.rb) that expects to be invoked on the command > line with some arguments.When rails loads up your tests it loads > everything in app/models, app/controllers (and probably a few other > places) and ends up loading your index.rb script, which blows up since > it wasn't provided with the arguments it expects.
Just what I was about to suggest. Well that's my story anyway :) It is amazing how something that seems obvious once pointed out can be so elusive. Colin -- 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.

