[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help with running tests for rails using gems



2013/6/4 Sam Ruby <rubys@intertwingly.net>:
> Don't apply the previous patch.
>
> I can reproduce the above error with the following commands:
>
>> rails new foobar
>> cd foobar
>> rails generate scaffold Product title
>> rake db:migrate
>> rake test
>
>
> Relevant line in testapp/test/test_helper.rb:
>
>> require File.expand_path('../../config/environment', __FILE__)
>
>
> These errors may be related.  The latter error is clearly a Rails problem.

Did you update your environment to get fixes that went in yesterday?

sudo aptitude update
sudo aptitude safe-upgrade

The above sequence of commands work for me.

$ rake test
Invalid gemspec in
[/var/lib/gems/1.9.1/specifications/ZenTest-4.9.1.gemspec]: Illformed
requirement ["< 2.1, >= 1.8"]
Invalid gemspec in
[/usr/share/rubygems-integration/1.9.1/specifications/ZenTest-4.9.1.gemspec]:
Illformed requirement ["< 2.1, >= 1.8"]
Invalid gemspec in
[/var/lib/gems/1.9.1/specifications/ZenTest-4.9.1.gemspec]: Illformed
requirement ["< 2.1, >= 1.8"]
Invalid gemspec in
[/usr/share/rubygems-integration/1.9.1/specifications/ZenTest-4.9.1.gemspec]:
Illformed requirement ["< 2.1, >= 1.8"]
Invalid gemspec in
[/var/lib/gems/1.9.1/specifications/ZenTest-4.9.1.gemspec]: Illformed
requirement ["< 2.1, >= 1.8"]
Invalid gemspec in
[/usr/share/rubygems-integration/1.9.1/specifications/ZenTest-4.9.1.gemspec]:
Illformed requirement ["< 2.1, >= 1.8"]
Loaded suite /usr/lib/ruby/vendor_ruby/rake/rake_test_loader
Started
.......

Finished in 0.488212855 seconds.

7 tests, 10 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions,
0 notifications
0% passed

14.34 tests/s, 20.48 assertions/s
Invalid gemspec in
[/var/lib/gems/1.9.1/specifications/ZenTest-4.9.1.gemspec]: Illformed
requirement ["< 2.1, >= 1.8"]
Invalid gemspec in
[/usr/share/rubygems-integration/1.9.1/specifications/ZenTest-4.9.1.gemspec]:
Illformed requirement ["< 2.1, >= 1.8"]

the ZenTest illformed request is supposed to go away with a newer
rubygems version
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709412 If anyone can
help me fix this bug with current rubygems version, that would be
great too.
--
പ്രവീണ്‍ അരിമ്പ്രത്തൊടിയില്‍
You have to keep reminding your government that you don't get your
rights from them; you give them permission to rule, only so long as
they follow the rules: laws and constitution.


Reply to: