|
Re: Noob: run/rspec mismatch? [message #846682 is a reply to message #646906] |
Mon, 16 April 2012 13:09  |
Eclipse User |
|
|
|
I got a similar error: undefined method `describe' for main:Object (NoMethodError).
I am using rspec.
The solution for that has to do with two procedures:
1. I had to copy the rspec folders from the C:\Ruby193\lib\ruby\gems\1.9.1\gems folder to my project folder and
2. include the following snippet at the beginning of the script:
require 'rubygems'
version = ">= 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
ARGV.shift
end
gem 'rspec-core', version
load Gem.bin_path('rspec-core', 'rspec', version)
require 'rspec'
I hope this helps.
PS: I am using rspec 2.9.0
-M
|
|
|
Powered by
FUDForum. Page generated in 0.04361 seconds