PDA

View Full Version : Using the ruby debugger in tests


rubyonrails-talk
August 31st, 2006, 06:02 AM
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_contr oller_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/

More... (http://groups.google.com/group/rubyonrails-talk/msg/9370724d23d66cb9)