Can't start rspec

Cannot find RSpec runner script for ruby-1.8.7-p352 SDK

Installed:
rspec (2.12.0, 2.11.0)
rspec-core (2.12.0, 2.11.1)
rspec-expectations (2.12.0, 2.11.3)
rspec-mocks (2.12.0, 2.11.3)

11 comments
Comment actions Permalink

Could you please be a little bit more verbose?  Are you saying that RM is unable to run RSpec test and says that there is no rspec runner?
What platform/RM version are you using?  If RM shows something in console it would be also helpful.

Thanks, Oleg.

0
Comment actions Permalink

Hey Oleg

I'm using

RubyMine 4.5.4
Java JDK 1.7.0_09
Linux Ubuntu 12.04 LTS

When I'm starting RubyMine in a terminal there is no output.

The Event Log in RubyMine itself displays the following message:
"10:53:57 AM Error running user_spec: Cannot find RSpec runner script for ruby-1.8.7-p352 SDK"

Greetings
Pascal

0
Comment actions Permalink

Hi Pascal,

is your application is Rails application?
RM doesn't run spec tests if there is not rails and rspec-rails installed :( see http://youtrack.jetbrains.com/issue/RUBY-11989  for more details

Regards, Oleg.

0
Comment actions Permalink

Not sure if this is it, but I will post just in case it might be helpful:

I changed ruby versions in a project I was working on. Changing it in the IDE actually did NOT change the ".ruby-version" file in the base directory of the project, and because of this the IDE would not run RSpec. It had a red X and grey question mark on the fold down run menu too.

I had changed ruby versions in the IDE, but I don't know if it is the IDE that makes the "ruby-version" file. If it is then it is not updating it.

0
Comment actions Permalink

Hey Oleg

No, I'm working with sinatra. Installed rspec-rails and rails but this didn't change a thing. Still couldn't solve this problem.

Gemfile:

source 'https://rubygems.org'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'require_relative'
gem 'bcrypt-ruby'
gem 'haml'
gem 'rcov'
gem 'rspec'
gem 'parseconfig'
gem 'tlsmail'
gem 'rake'
gem 'rdiscount'


gem list shows:

*** LOCAL GEMS ***

actionmailer (3.2.9)
actionpack (3.2.9)
activemodel (3.2.9)
activerecord (3.2.9)
activeresource (3.2.9)
activesupport (3.2.9)
addressable (2.3.2)
arel (3.0.2)
backports (2.6.5, 2.6.4)
bcrypt-ruby (3.0.1)
builder (3.1.4, 3.0.4)
bundle (0.0.1)
bundler (1.2.2)
childprocess (0.3.6)
diff-lcs (1.1.3)
erubis (2.7.0)
eventmachine (1.0.0)
ffi (1.2.0.dev4, 1.1.5)
haml (3.2.0.rc.1, 3.1.7)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
json (1.7.5)
libwebsocket (0.1.6, 0.1.5)
mail (2.5.2, 2.4.4)
mime-types (1.19)
multi_json (1.3.7)
parseconfig (1.0.2)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-protection (1.2.0)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.9)
railties (3.2.9)
rake (10.0.2, 10.0.1, 0.9.2.2)
rcov (1.0.0)
rdiscount (1.6.8)
rdoc (3.12)
redcarpet (2.2.2)
require_relative (1.0.3)
rspec (2.12.0, 2.11.0)
rspec-core (2.12.0, 2.11.1)
rspec-expectations (2.12.0, 2.11.3)
rspec-mocks (2.12.0, 2.11.3)
rspec-rails (2.12.0)
rubyzip (0.9.9)
rufus-scheduler (2.0.17)
selenium-webdriver (2.26.0)
sinatra (1.3.3)
sinatra-contrib (1.3.2, 1.3.1)
sprockets (2.8.1, 2.2.1)
thor (0.16.0)
tilt (1.3.3)
tlsmail (0.0.1)
treetop (1.4.12)
tzinfo (0.3.35)
websocket (1.0.3)

rspec is displayed in external libraries.

But I had to use bundle install from terminal. Didn't work in RubyMine. It just tried to Fetching source index for https://rubygems.org/ but never ended. Are those two problems maybe related?

Greets
Pascal

0
Comment actions Permalink

Unfortunatelly, this is what I meant :( You do not use rails and rspec-rails in your Gemfile :(
You can try to create empty rails app and verify that you will be able to run rspec there, but I'm almost sure that this is the case.

Sorry that I do not have a good news for you :_|

Regards, Oleg.

0
Comment actions Permalink

Hey all,

Thanks for your help. It works now.

I had to install use

sudo apt-get install ruby-rspec

Somebody why this did the thing? And that it wasn't enough just to download the gems?

By the way: Same thing with nokogiri: Had to install ruby-nokogiri and afterwards it worked.

Greets
Pascal

0
Comment actions Permalink

Hey Oleg,

But it worked before. I used it on a window machine and there everything worked fine...

Greets
Pascal

0
Comment actions Permalink

Perhaps you had rspec installed there.

Oleg.

0
Comment actions Permalink

I'm glad it works, though you might want to find out why - that sounds very odd.

0

Please sign in to leave a comment.