Ok, now I found if I add *require 'ruby-debug'* in the spec itself the debugger invokes. However....
It is useless. I get a breakpoint in my controller but have no access to anything I want: ../Users/DK/Documents/ror/projects/wavelineup3/app/controllers/user_sessions_controller.rb:14 respond_to do |format| (rdb:1) @user_session *** Unknown command: "@user_session". Try "help". (rdb:1) self *** Unknown command: "self". Try "help". (rdb:1) params *** Unknown command: "params". Try "help". (rdb:1) So, how does one go about debugging their tests, or rather specs, in rspec? On Mon, Sep 13, 2010 at 5:17 PM, David Kahn <d...@structuralartistry.com>wrote: > Anyone know how to get ruby-debug (ruby-debug19) to invoke when running my > specs? When I place 'debugger' in my controller and run the spec, it just > skips over it. > > I have require 'ruby-debug' in spec_helper.rb > > Rails 3, ruby 1.9.2, ruby-debug19, rspec 2.0.0.beta.22 > > > -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.