Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Rpec 2.5.2(is it possible t run Rspec in Eclipse)
Rpec 2.5.2 [message #734858] Mon, 10 October 2011 08:19 Go to next message
anna-lena.sundin is currently offline anna-lena.sundinFriend
Messages: 1
Registered: October 2011
Junior Member
Hi all,
I'm learning Ruby and Rspec.

I use Eclipse 3.6.1 (Helios) and DLTK.
I can run Rubyscripts from Eclipse, but not RSpec.

I get following error:
dltk-rspec-runner.rb:12:in `require': no such file to load -- spec (LoadError)

Do I have to configure Eclipse?
Or is not Rspec supported?

Re: Rpec 2.5.2 [message #1673695 is a reply to message #734858] Sat, 14 March 2015 12:28 Go to previous messageGo to next message
Steve Swett is currently offline Steve SwettFriend
Messages: 1
Registered: March 2015
Junior Member
I'm having the same problem. I'm using Eclipse Luna, Ruby 2.1 and rspec 3.2.0. The "rspec spec" command works fine outside of Eclipse. But when I right click my spec file (such as "book_spec.rb") in Eclipse and choose Run As Ruby Test, I get the following:

C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- spec (LoadError)
from C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/eclipse/configuration/org.eclipse.osgi/1519/0/.cp/testing/dltk-rspec-runner.rb:12:in `rescue in <main>'
from C:/eclipse/configuration/org.eclipse.osgi/1519/0/.cp/testing/dltk-rspec-runner.rb:3:in `<main>'

I googled, but didn't come up with a solution. I'm just trying to do a simple Ruby rspec test -- not using Rails. Attempting to follow rspec intro here: .

I'm using DLTK version
Re: Rpec 2.5.2 [message #1715075 is a reply to message #1673695] Thu, 19 November 2015 00:03 Go to previous message
James Rinkevich is currently offline James RinkevichFriend
Messages: 2
Registered: November 2015
Junior Member
select Run => External Tools => External Tools Configurations
for Name
enter RSpec Test
for Location:
browse file system for rpec in the bin folder (rspec.bat on windows)
for Working Directory:
browse file system for spec folder
copy location to argument
push Apply
push Run at on bottom of this or
run as external command "RSpec Test"
Previous Topic:TCL
Next Topic:Error "No interpreter executables found"
Goto Forum:

Current Time: Fri Apr 19 00:03:28 GMT 2024

Powered by FUDForum. Page generated in 0.01745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top