Unable to use spork DRB server

I use RubyMine 5.4 in WinXP Pro.

I want to try spork with TEST::UNIT, but I get the error:

Could not find gem 'spork (~> 1.0rc) x86-mingw32' in the gems available

Here are my steps:

Tools > Run Spork DRb Server with checkbox checked
Message said spork gem not installed.
Based on instructions here:  https://github.com/sporkrb/spork

C:\>gem install spork-testunit
Fetching: spork-0.9.2.gem (100%)
Successfully installed spork-0.9.2
Fetching: spork-testunit-0.0.8.gem (100%)
Successfully installed spork-testunit-0.0.8
Installing ri documentation for spork-0.9.2
Installing ri documentation for spork-testunit-0.0.8
2 gems installed

To my gemfile, I added:

gem 'spork', '~> 1.0rc'

Again, Tools > Run Spork DRb Server, checkbox checked
Message:  Could not find gem 'spork (~> 1.0rc) x86-mingw32' in the gems available

Please advise.

4 comments

Hi,

from the ourput you;ve provided that you have installed spork 0.9.2, while in your Gemfile you require 1.0rc or later.
Perhaps you should do "bundle update" (Tools|Bundle|Update)?
If this won't help please provide (attach) your gem environment (Tools|Show Gem Environment)

Regards, Oleg.

0

>>  do "bundle update"

Done.

Tools > Run Spork DRb Server

Message:

"I can't find the file C:/Documents and Settings/agd46667/My Documents/RubyMineProjects/Proj_02/test/test_helper.rb for the TestUnit testing framework.
Are you running me from the project directory?"

Note that I'm not running Rails apps. My only use of RM is likely to be UI testing of web applications.

But not reloading the test environment would be a huge time-saver.

0

Hi,

It is not RM but Spork who writes this message (it does expect to have test_helper.rb).
I'd suggest to learn on how to use Spork with ruby project on Spork's site (https://github.com/sporkrb/spork)

Regards, Oleg.

0

>>  I'd suggest to learn on how to use Spork with ruby project

Done that. Everything seems to be working fine  :)

Once again, thanks for all your help.

0

Please sign in to leave a comment.