Rspec2 / Rails3 / EAP 95.361

Has anyone gotten Rails3/Rspec2 to work with EAP 95.361 ??

I tried using Rspec2 w/o success - when I press Ctrl-Shift-F10 RubyMine runs 'rake spec' and tells me 'empty test suite'.

Is there a way to make this work with EAP ??

6 comments
Comment actions Permalink

RSpec 2.0.0.beta.12 support is coming in next EAP, which will be available later today.

0
Comment actions Permalink

Andy,
Please try our latest EAP 96.552

0
Comment actions Permalink

Dennis and Roman - thanks - the new EAP is great.

But it still doesn't run Rspec2 for me.

It looks like its trying to run the script "../.rvm/gems/ruby-1.8.7-p174@t3/bin/spec"

I think the rspec2 executable was changed from 'spec' to 'rspec'.  Could this be the problem?

0
Comment actions Permalink

It seems you are right. We've added support for new custom reporter API, but rspec runner script was manually specifed in my test run configurations. Please copy "rspec" to "spec".

0
Comment actions Permalink

Ok, RM also doesn't suggest to automatically create rspec run configuration for file which is opened in editor. It is because Spec namespace was renamed to RSpec but RM codeinsight expect to find Spec module in context. I file issues - http://youtrack.jetbrains.net/issue/RUBY-6357 and http://youtrack.jetbrains.net/issue/RUBY-6358

0
Comment actions Permalink

OK I copied rspec to spec - selected 'run all specs in spec' from the 'file browser' diaload and - it runs !!!

But - I have some other issues using Rspec2 with the new EAP (96.552):
- when editing the _spec.rb file, ctrl-shift-F10 doesn't start the test
- when editing the _spec.rb file, then right clicking, it doesn't give me an option to run/debug the test

Both of these things work using Rspec1 on EAP-96.552.

- Andy

0

Please sign in to leave a comment.