|Re: Noob: run/rspec mismatch? [message #846682 is a reply to message #646906]
||Mon, 16 April 2012 17:09
| M Flores
Registered: April 2012
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:
version = ">= 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
gem 'rspec-core', version
load Gem.bin_path('rspec-core', 'rspec', version)
I hope this helps.
PS: I am using rspec 2.9.0
Powered by FUDForum
. Page generated in 0.04149 seconds