Skip to main content



      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 04:19 Go to next message
Eclipse UserFriend
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?

Thanks
Anna
Re: Rpec 2.5.2 [message #1673695 is a reply to message #734858] Sat, 14 March 2015 08:28 Go to previous messageGo to next message
Eclipse UserFriend
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:

code.tutsplus.com/tutorials/ruby-for-newbies-testing-with-rspec--net-21297 .

I'm using DLTK version 5.0.0.201306060709.
Re: Rpec 2.5.2 [message #1715075 is a reply to message #1673695] Wed, 18 November 2015 19:03 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 17:20:53 EDT 2025

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

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

Back to the top