Error running All tests in: spec: Spork tests runner 'testdrb' script wasn't found

Hi guys,

Ubuntu 12.10, RubyMine 4.5.4. Using rspec and spork. Spork bootstrapped and runs fine (started through the IDE).

Project spec folder contains some tests that work (through spork) when running "rspec spec" in the console.

I right-click the spec folder and choose "Run 'All tests in: spec' " -- just like the docs say.

I then get: Error running All tests in: spec: Spork tests runner 'testdrb' script wasn't found

But testdrb is for test::unit, which I don't use.

What should I do?

Thanks!

15 comments
Comment actions Permalink

You should use "Run All specs in: spec", "Run All tests in: spec" creates minitest/shoulda/testunit run configuration.

Oleg.

0
Comment actions Permalink

Hey Oleg,

I don't have such an entry when right-clicking the spec folder. Where can I find it?

Thanks,
-e

0
Comment actions Permalink

Do you use have rspec in you Gemfile?

Oleg.

0
Comment actions Permalink

Yes, of course. And running rspec spec in the console works fine.

0
Comment actions Permalink

Here is a simple project which works fine for me.
Can you run rspec tests in it?
Also can you provide a tet project which demostrates the problem you have?

Regards, Oleg.



Attachment(s):
rspec-test.zip
0
Comment actions Permalink

Thanks; I'm afraid the test project doesn't work either. Here's the context menu I get.



Attachment(s):
spec.png
0
Comment actions Permalink

Sad story :(

What ruby are you using? Is it installed through rvm, rbenv, or from sources?
Also what is your gem environment (Tools|Show Gem Environment)?

Regards, Oleg.

0
Comment actions Permalink

lol, sad story indeed.

Using Ruby 1.9.3p327 2012-11-10 revision 37606) [i686-linux]

Installed with rvm 1.17.0 (stable).

Dump from Tools | Show Gem Environment:

RUBYGEMS VERSION: 1.8.24
RUBY VERSION: 1.9.3 (2012-11-10 patchlevel 327) [i686-linux]
INSTALLATION DIRECTORY: /home/ezuk/.rvm/gems/ruby-1.9.3-p327@muse
RUBY EXECUTABLE: /home/ezuk/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
EXECUTABLE DIRECTORY: /home/ezuk/.rvm/gems/ruby-1.9.3-p327@muse/bin
RUBYGEMS PLATFORMS:
  ruby
  x86-linux
GEM PATHS:
   /home/ezuk/.rvm/gems/ruby-1.9.3-p327@muse
   /home/ezuk/.rvm/gems/ruby-1.9.3-p327@global
GEM CONFIGURATION:
   :update_sources => true
   :verbose => true
   :benchmark => false
   :backtrace => false
   :bulk_threshold => 1000
REMOTE SOURCES:
   http://rubygems.org/
----------------------
IDE: JetBrains RubyMine 4.5.4, build #RM-119.71
OS: Linux 3.5.0-18-generic[i386]
Java: 1.6.0_37-b06
RubyMine SDK Environment:
Sdk: RVM: ruby-1.9.3-p327 [muse]
Sdk Version: ver.1.9.3p327 ( revision 37606) p327
Ruby Interpreter: /home/ezuk/.rvm/rubies/ruby-1.9.3-p327/bin/ruby
RVM Sdk: yes, gemset:muse
RVM Home: /home/ezuk/.rvm
Sdk Language Level: 1.9
Sdk Load Path:
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/i686-linux
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/vendor_ruby/1.9.1
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/vendor_ruby/1.9.1/i686-linux
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/vendor_ruby
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1
     ~/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/i686-linux
     ~/Downloads/RubyMine-4.5.4/rubystubs193
Sdk Gem paths:
     ~/.rvm/gems/ruby-1.9.3-p327@muse/bundler/gems
     ~/.rvm/gems/ruby-1.9.3-p327@muse/gems
     ~/.rvm/gems/ruby-1.9.3-p327@global/gems
Gems used for 'muse':
     treetop (1.4.12)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/treetop-1.4.12
     tilt (1.3.3)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/tilt-1.3.3
     factory_girl (4.1.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/factory_girl-4.1.0
     json (1.7.5)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/json-1.7.5
     uglifier (1.3.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/uglifier-1.3.0
     oauth2 (0.8.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/oauth2-0.8.0
     multi_json (1.3.7)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/multi_json-1.3.7
     actionmailer (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/actionmailer-3.2.9
     rspec-rails (2.12.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rspec-rails-2.12.0
     omniauth-oauth2 (1.1.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/omniauth-oauth2-1.1.1
     multipart-post (1.1.5)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/multipart-post-1.1.5
     rack-ssl (1.3.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rack-ssl-1.3.2
     sqlite3 (1.3.6)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/sqlite3-1.3.6
     bootstrap-sass (2.2.1.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/bootstrap-sass-2.2.1.1
     tzinfo (0.3.35)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/tzinfo-0.3.35
     rack (1.4.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rack-1.4.1
     thor (0.16.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/thor-0.16.0
     erubis (2.7.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/erubis-2.7.0
     omniauth (1.1.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/omniauth-1.1.1
     mail (2.4.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/mail-2.4.4
     launchy (2.1.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/launchy-2.1.2
     rspec-mocks (2.12.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rspec-mocks-2.12.0
     builder (3.0.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/builder-3.0.4
     mime-types (1.19)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/mime-types-1.19
     libv8 (3.3.10.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/libv8-3.3.10.4-x86-linux
     rack-cache (1.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rack-cache-1.2
     cancan (1.6.8)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/cancan-1.6.8
     rubyzip (0.9.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rubyzip-0.9.9
     omniauth-google-oauth2 (0.1.13)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/omniauth-google-oauth2-0.1.13
     activesupport (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/activesupport-3.2.9
     activemodel (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/activemodel-3.2.9
     rake (10.0.2)
         ~/.rvm/gems/ruby-1.9.3-p327@global/gems/rake-10.0.2
     websocket (1.0.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/websocket-1.0.4
     coffee-script (2.2.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/coffee-script-2.2.0
     childprocess (0.3.6)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/childprocess-0.3.6
     activeresource (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/activeresource-3.2.9
     rdoc (3.12)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rdoc-3.12
     nokogiri (1.5.5)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/nokogiri-1.5.5
     diff-lcs (1.1.3)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/diff-lcs-1.1.3
     coffee-rails (3.2.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/coffee-rails-3.2.2
     bundler (1.2.2)
         ~/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2
     factory_girl_rails (4.1.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/factory_girl_rails-4.1.0
     rolify (3.2.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rolify-3.2.0
     rack-test (0.6.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rack-test-0.6.2
     actionpack (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/actionpack-3.2.9
     activerecord (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/activerecord-3.2.9
     journey (1.0.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/journey-1.0.4
     hashie (1.2.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/hashie-1.2.0
     xpath (1.0.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/xpath-1.0.0
     polyglot (0.3.3)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/polyglot-0.3.3
     email_spec (1.4.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/email_spec-1.4.0
     addressable (2.3.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/addressable-2.3.2
     database_cleaner (0.9.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/database_cleaner-0.9.1
     jwt (0.1.5)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/jwt-0.1.5
     ffi (1.2.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/ffi-1.2.0
     execjs (1.4.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/execjs-1.4.0
     selenium-webdriver (2.26.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/selenium-webdriver-2.26.0
     jquery-rails (2.1.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/jquery-rails-2.1.4
     quiet_assets (1.0.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/quiet_assets-1.0.1
     spork (0.9.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/spork-0.9.2
     railties (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/railties-3.2.9
     sprockets (2.2.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/sprockets-2.2.1
     simple_form (2.0.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/simple_form-2.0.4
     rspec-expectations (2.12.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rspec-expectations-2.12.0
     i18n (0.6.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/i18n-0.6.1
     arel (3.0.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/arel-3.0.2
     libwebsocket (0.1.6.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/libwebsocket-0.1.6.1
     hike (1.2.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/hike-1.2.1
     sass-rails (3.2.5)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/sass-rails-3.2.5
     rails (3.2.9)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rails-3.2.9
     httpauth (0.2.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/httpauth-0.2.0
     therubyracer (0.10.2)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/therubyracer-0.10.2
     coffee-script-source (1.4.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/coffee-script-source-1.4.0
     capybara (2.0.1)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/capybara-2.0.1
     sass (3.2.3)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/sass-3.2.3
     rspec-core (2.12.0)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/rspec-core-2.12.0
     faraday (0.8.4)
         ~/.rvm/gems/ruby-1.9.3-p327@muse/gems/faraday-0.8.4

0
Comment actions Permalink

Could you please create a new (initially empty) gemset and try the test project with it?

Thanks, Oleg.

0
Comment actions Permalink

Sure, what do I do? (Total noob...)

0
Comment actions Permalink

I think I have finally understood the cause of the problem :)
We use rspec gem as a sign that we can run rspec tests, but rspec-rails doesn't depend on the gem anymore :( (see https://github.com/rspec/rspec-rails/commit/f5a573518420629b80f10bf1b8a01faf54ae1e1d#rspec-rails.gemspec)
So, to workaround the problem you should explicitly ad rspec in your Gemfile
E.g.

gem 'rspec', :require => false

should work.

Oleg.

P.S. btw now we have ticket about the problem - http://youtrack.jetbrains.com/issue/RUBY-12632 so you can track status of the problem.
0
Comment actions Permalink

I did that, but still, no joy :(

It prompted to install the gem (which I really didn't want to install), and I installed it. Right-click menu on spec subfolder (and specific specs) unchanged.

0
Comment actions Permalink

Hmm, what is your gem environment now?

Thanks, Oleg.

0
Comment actions Permalink

Sorry Oleg, I think I'm giving up on this development environment... Setting up Rails is just a disaster. :\ (This is a minor issue, other stuff isn't related to RubyMine)

I'm going to try to set up a box with Vagrant and develop using my Windows instance of RubyMine... Will see how that goes. Thanks again for all of your support.

0

Please sign in to leave a comment.