[rspec-users] reby-debug and rspec

Rick DeNatale rick.denatale at gmail.com
Wed Jan 30 19:15:37 EST 2008

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

More information about the rspec-users mailing list