On Dec 8, 2010, at 11:22 PM, Michelle Pace wrote:
> Kristian Mandrup wrote in post #917121:
>> As of beta.4, you’ll have to do add this configuration manually. Just
>> create an autotest directory in the root of your project, put the
>> following statement in ./autotest/discover.rb:
>>
>> Autotest.add_discovery { "rspec2" }
>
>
> Hi Kristian (or anyone who can shed some light on this),
>
> I have followed the above instructions but to no avail. Looking at the
> output of my command prompt below is there something obvious I am doing
> incorrectly in getting autospec to work? I really would appreciate any
> suggestions.
The ZenTest/autotest gem world is a bit confusing right now. Here's the deal:
ZenTest-4.4.1 rolled autotest (mostly) back into ZenTest, but introduced a
regression in which Autotest no longer sees ./autotest/discover.rb when running
on Ruby 1.9.2. This is because Ruby 1.9.2 does not add "." to the $LOAD_PATH
and, while autotest-4.4.5 (before it got rolled back to ZenTest) handled this,
ZenTest-4.4.1 does not.
Additionally, there is now an autotest-standalone gem (currently at 4.5.2),
which _does_ handle the Ruby 1.9.2 situation correctly.
In any of these cases, autotest's --style/-s option works correctly. So your
options are:
# autotest-4.4.5
autotest # requires ./autotest/discover.rb
autotest --style rspec2
# autotest-4.4.6 (with ZenTest-4.4.1)
autotest --style rspec2
# autotest-standalone-4.5.2
autotest # requires ./autotest/discover.rb
autotest --style rspec2
HTH,
David
> Thank-you in advance,
> Michelle
>
>
> C:\DEVELOPMENT\twits>cat autotest/discover.rb
> Autotest.add_discovery { “rspec2” }
>
> C:\DEVELOPMENT\twits>ruby -v
> ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
>
> C:\DEVELOPMENT\twits>gem list—local
> * LOCAL GEMS
> autotest (4.4.6)
> bundler (1.0.7)
> diff-lcs (1.1.2)
> git (1.2.5)
> jeweler (1.5.1)
> minitest (1.6.0)
> rake (0.8.7)
> rdiscount (1.6.5)
> rdoc (2.5.8)
> redcar (0.9.1)
> rspec (2.2.0)
> rspec-core (2.2.1)
> rspec-expectations (2.2.0)
> rspec-mocks (2.2.0)
> rubyzip (0.9.4)
> ZenTest (4.4.1)
>
> C:\DEVELOPMENT\twits>autospec
> **********************************************************
> REMOVAL NOTICE: you are using behaviour that has been
> removed from rspec-2.
>
> * The ‘autospec’ command is no longer supported.
> * Please use ‘autotest’ insted.
>
> This message will be removed from a future version of rspec
> **********************************************************
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
Cheers,
David
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users