Autotest with a non-rspec project

Hello,

I’m working on a contract that doesn’t use rspec. When I try and run
autotest I get the following:

loading autotest/rails_rspec
Autotest style autotest/rails_rspec doesn’t seem to exist. Aborting.

I uninstalled the rspec gem and don’t have the rspec plugins loaded
for the project. I haven’t been able to find any suggested fixes that
work.

Any help would be greatly appreciated.

Thanks,
Dan

On Wed, Sep 17, 2008 at 11:51 AM, Dan [email protected] wrote:

work.
The only reason that I know of that this would be happening would be
that there are both a spec directory in your app and the rspec gem
somewhere on your path.

We’ve introduced an autospec command since the last release just to
avoid this conflict. So one thing you might try doing is cloning the
git repo, building and installing the gem from source (see
http://github.com/dchelimsky/rspec/wikis).

Let us know if that works.

I’m getting the same error - I’m using Test::Unit with Shoulda for this
particular project, and can’t autotest because it is trying to load
autotest/rails_rspec.

David C. wrote:

The only reason that I know of that this would be happening would be
that there are both a spec directory in your app and the rspec gem
somewhere on your path.

I don’t have a spec directory in the app, except perhaps in a plugin;
and I tried uninstalling the RSpec gem. But it is still trying to load
autotest/rails_rspec, and failing.

We’ve introduced an autospec command since the last release just to
avoid this conflict. So one thing you might try doing is cloning the
git repo, building and installing the gem from source (see
http://github.com/dchelimsky/rspec/wikis).

Are you talking about autospec as a replacement for autotest (which
wouldn’t seem to help the Test::Unit autotest problem), or a rewrite of
autotest/Zentest that includes separate commands for autospec
(RSpec-only) and autotest (Test::Unit only)?

Thanks!

On Wed, Oct 15, 2008 at 8:24 PM, Jon D. [email protected] wrote:

and I tried uninstalling the RSpec gem. But it is still trying to load
wouldn’t seem to help the Test::Unit autotest problem), or a rewrite of
autotest/Zentest that includes separate commands for autospec
(RSpec-only) and autotest (Test::Unit only)?

I introduced autospec in 1.1.5 in response to this ticket:

http://rspec.lighthouseapp.com/projects/5645/tickets/394

Basically, we set it up so when you run autotest, rspec won’t announce
itself to autotest’s discovery system unless an env variable is set.
autospec sets this variable and then calls autotest. That’s it.

So, unless there’s a bug that I’m not seeing, the only way this could
be happening is if you have either an rspec gem older than 1.1.5 or
you have an older version of the rspec plugin.

HTH,
David