Ruby on Rails Sunday, November 21, 2010

On 21 November 2010 16:53, Frederick Cheung <frederick.cheung@gmail.com> wrote:
>
>
> On Nov 21, 3:46 pm, Neil Bye <li...@ruby-forum.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment