Debugging shoulda tests

Hi,

First of let me say that I'm using a completely unporrted setup   However, I don't mind hacking a bit if someone can point me in the right direction to get my problem resolved, I'm just not quite sure where to look, maybe the test runners in rubymine are doing something special to resolve locations when debugging shoulda tests...?

I'm using Rails3beta1, ruby 1.9.2-head, rails branch of shoulda, and rubymine 2.0.2 93.120
I have most things I care about working ( http://youtrack.jetbrains.net/issue/RUBY-5782#comment=27-145268 ) except for a problem in debugging shoulda tests.  If I set a breakpoint in a shoulda test, when the breakpoint gets hit, rubymine pulls up the wrong file, though the debug variables all seem correct (Frames reflect wrong file)

I have a BP in test/unit/helpers/application_helper.rb, line 8, rubymine ends up showing activesupport-3.0.0.beta2/lib/active_support/callbacks.rb line 8
If I change my shoulda test to a test::unit variant, e.g. "def test_foo", then everything seems to be working fine.

Any help appreciated, thanks,

Matt

1 comment

Hello Matt,

RubyMine uses opensourced ruby-debug-ide and ruby-debug-ide19 gems. It is their bug. Please report the issue to author of http://wiki.github.com/mark-moseley/ruby-debug/ project

0

Please sign in to leave a comment.