[rspec-users] how to --debug rspec2 w/rails3?

David Chelimsky dchelimsky at gmail.com
Wed Apr 21 19:24:56 EDT 2010


On Wed, Apr 21, 2010 at 6:13 PM, John Dell <spovich at gmail.com> wrote:
> I'm diving into rails3 and rspec2.  Things are a bit rough....
>
> New application using RVM w/ruby 1.8.7 p249, Rails (3.0.0.beta3), RSpec
> (2.0.0.beta.7), ruby-debug (0.10.3), ruby-debug-base (0.10.3)
>
> I created a .rspec file in my Rails.root with the following
>
> --debug
> --colour
> --format progress
>
> Then I add a 'debugger' statement in one of my .spec files, and run 'rake
> spec', I get the following:
>
> "debugger statement ignored, use -d or --debug option on rspec to enable
> debugging"
>
> Running "rspec -d ./spec/**" gives the same result.  So, am I calling
> debugger wrong, or is it not working yet?

Looks like it's broken, as it should be working. Please do two things
(I'm on my way out the door):

1. enter an issue at http://github.com/rspec/rspec-core/issues
2. try this:

rdebug rspec ./spec

>
> Thanks!
> John
>
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list