ZenTest errors preventing autotest from running

autotest, ruby-on-rails, zentest

Solution

Just fixed this by editing

/usr/local/lib/ruby/gems/1.9.1/specifications/ZenTest-4.9.0.gemspec

so that the line specifying the rubygems version is now this:

 s.required_rubygems_version = Gem::Requirement.new("< 2.1") if s.respond_to? :required_rubygems_version=

now everything runs fine ...

Problem

I've previously added ZenTest to my gemfile to get autotest to run. On this occasion I get the following error four times over: ``` saasbook@saasbook:~/Documents/github/LocalSupport$ bundle exec autotest Invalid gemspec in [/usr/local/lib/ruby/gems/1.9.1/specifications/ZenTest-4.9.0.gemspec]: Illformed requirement ["< 2.1, >= 1.8"] ``` I've searched on this error and found a number of discussions in the github repo for ZenTest: https://github.com/seattlerb/zentest/issues/29 https://github.com/seattlerb/zentest/issues/32 https://github.com/seattlerb/zentest/issues/33 I've followed some of the advice there, uninstalled and re-installing ZenTest, but no joy. I'm on ubuntu running ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] My entire app is available here: https://github.com/tansaku/LocalSupport so for example you can check out my GemFile: https://github.com/tansaku/LocalSupport/blob/master/Gemfile Any ideas? Many thanks in advance

Original source