Right click and run in a test doesn't work in RubyMine 6

The test running isn’t working properly for  me. If I run all my tests then all is well, but if a right click in a  test and choose to run that test I get:

/usr/bin/ruby -e  $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest  …/test/functional/uhh_files_test.rb  –name=test_highlight_files_which_are_in_the_outbox
Testing started at 14:50 …
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file — simplecov-rcov (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’
from /home/martinto/Documents/EOS/eosdirector/test/test_helper.rb:12:in `’
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’
from /home/martinto/Documents/EOS/eosdirector/test/functional/uhh_files_test.rb:1:in `’
from -e:1:in `load’
from -e:1:in `’
3 comments
Comment actions Permalink

What I have found is that I need to do a bundle exec ruby to get the tests to run. Is it possible to get RubyMine to do that?

0
Comment actions Permalink

You need to change run configuration to execute in bundler context (go to Run|Edit Configurations and select Bundler tab of the configuration).
If you want to set this settings by default for all new run configuration then you need to change default run configuration of appropriate type.

Hope this helps, Oleg.

0
Comment actions Permalink

Thanks, it all works now.


0

Please sign in to leave a comment.