Rspec2 / Rails3 / EAP 95.361 Follow
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 ??
Please sign in to leave a comment.
RSpec 2.0.0.beta.12 support is coming in next EAP, which will be available later today.
Andy,
Please try our latest EAP 96.552
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?
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".
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
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