Autotest-4.4.6/ZenTest-4.4.1 broken with Rspec2 and Rails3
ZenTest and Autotest have been updated on December 1st. After upgrading to the latest versions (Autotest-4.4.6/ZenTest-4.4.1), autotest won't discover my sp开发者_如何转开发ecs and tries to run the standard unit test. The output of autotest is as follow :
xto@Cygnus:~/projects/ruby/hibou$ autotest
(Not running features. To run features in autotest, set AUTOFEATURE=true.)
/home/xto/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/test_helper.rb].each { |f| require f }" | unit_diff -u
Downgarding to Autotest-4.4.5/ZenTest-4.4.0 fixes the problem...
Any tips would be appreciated...
Run it via 'autotest -s rspec2' (With the latest autotest and zentest)
Did u try running autotest with RSPEC=true ? something like this RSPEC=true autotest
I just upgraded ZenTest to 4.4.2 and autotest works without specifying any arguments on the CLI.
You might not have a .rspec
file in Rails.root so autotest
does not know about your specs. You generate it by runnig: rails generate rspec:install
.
And you need to have gem 'autotest-rails
in the Gemfile (next to gem 'ZenTest'
).
Here's the installation instruction: http://relishapp.com/rspec/rspec-rails/v/2-5/file/autotest
精彩评论