On 14 April 2011 10:37, Fernando Perez <[email protected]> wrote:
>> Are you using a ruby command to run the test,  ie ruby <options>
>> some_file.rb?  If so then use rdebug rather than ruby.
>
> Indeed Colin, I just tried with rdebug and now the breakpoints are
> honored. But it's a bit painful to use on a single test as the debugger
> stops once when it hits the require 'test_helper' line and another time
> when it starts loading the class of the test file.
>
> Can't I just use ruby like before?

Typing rdebug with no params shows the command line options.  It looks
like --no-stop prevents the initial break on startup.

Colin

>
> $ ruby -I test test/functional/pages_controller_test.rb -n some_test ?
>
> --
> Posted via http://www.ruby-forum.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 [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.
>
>

-- 
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.

Reply via email to