Autospec broken - non-rails project


For some reason, autospec has stopped working on one of my pure ruby

I’m not sure whether or not this was before of after I updated to RSpec

Spec’s which run fine using the textmate rspec bundle’s runner fail with
autospec, with a ‘undefined method describe’ error.

I’m sure that it’s some configuration error, but so far googling has not
brought any joy.

Any help appreciated.

Rick DeNatale

My blog on Ruby


On Tue, Nov 25, 2008 at 2:21 PM, Rick DeNatale

‘undefined method describe’ error.

This has nothing to do with your problem, but I thought it was kind of
funny. I was working on a little non-Rails project myself, and got the
‘undefined method describe’ error with the following code:

require ‘rubygems’
require ‘spec’

describe ‘nothing’ do
it ‘should fail’ do
1.should == 2

What was especially frustrating was that this code worked perfectly well
irb. I got as far as composing a message to post here, when I realized
perhaps spec.rb was not the best name for this file. :slight_smile: