[rspec-users] reby-debug and rspec

James Deville james.deville at gmail.com
Wed Jan 30 19:21:36 EST 2008

The other options is to do require 'ruby-debug' in your development.rb  
and test.rb environment files, and just do debugger where you want the  
breakpoint in your test

On Jan 30, 2008, at 4:15 PM, Rick DeNatale wrote:

> On 1/30/08, Jay Donnell <jaydonnell at yahoo.com> wrote:
>> How do I use the ruby debugger with a specific test (not the whole  
>> spec file)? I want to do something like this.
>> $ rdebug spec/models/user_spec.rb -s "should error if not new_record"
> Almost there:
>  $rdebug spec/models/user_spec -- s "should error if not new_record"
> The -- separates the rdebug options from the options for the program
> being debugged.
> -- 
> Rick DeNatale
> My blog on Ruby
> http://talklikeaduck.denhaven2.com/
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

James Deville
james.deville at gmail.com
rspec r3172
rspec_on_rails r3172
rails r8331

More information about the rspec-users mailing list