$ gem install ruby-debug
$ rdebug test/functional/hot_seat_controller_test.rb
On 8/31/06, Jonathan del Strother
<maillist-3GLpx8vVthx0ubjbjo6WXg@public.gmane.org>
wrote:>
>
> Is there any way to attach the ruby debugger to a functional test? I
> was hoping that something like :
> ruby -r debug test/functional/hot_seat_controller_test.rb
> would work, but it dies with the following trace:
>
> ./script/../config/boot.rb:14: `uninitialized constant
> Rails'' (NameError)
> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:21:in `require''
> from script/runner:3
> ./script/../config/boot.rb:14:unless defined?(Rails::Initializer)
>
>
> Any ideas?
> Jon
>
>
>
>
> >
>
--
Kent
---
http://www.datanoise.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---