自动测试错误消息

时间:2011-10-11 00:19:17

标签: ruby-on-rails-3 autotest

运行自动测试时出现以下错误。 奇怪的是我没有文件夹/Library/Ruby/Gems/1.8/,但文件夹/Library/Ruby/Gems/1.9.1 /.

帮助?感谢。

Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/heroku-2.8.6.gemspec]: invalid date format in specification: "2011-10-07 00:00:00.000000000Z"
loading autotest/rails_rspec2


--------------------------------------------------------------------------------


/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -rrubygems -S /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/bin/rspec --tty '/Users/nikeelevet/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb'
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/heroku-2.8.6.gemspec]: invalid date format in specification: "2011-10-07 00:00:00.000000000Z"
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/heroku-2.8.6.gemspec]: invalid date format in specification: "2011-10-07 00:00:00.000000000Z"
/Users/nikeelevet/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb:20: undefined method `desribe' for #<Class:0x1045bff68> (NoMethodError)
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/example_group.rb:142:in `module_eval'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/example_group.rb:142:in `subclass'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/example_group.rb:129:in `describe'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/dsl.rb:5:in `describe'
    from /Users/nikeelevet/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb:3
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load_spec_files'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `map'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in `load_spec_files'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:18:in `run'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:in `run_in_process'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in `run'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:in `autorun'
    from /Library/Ruby/Gems/1.8/gems/rspec-core-2.6.4/bin/rspec:4

2 个答案:

答案 0 :(得分:1)

金发碧眼的时刻,我能够删除错误消息中指定的gem。

答案 1 :(得分:0)

为什么不尝试使用旧版本的autotest和/或heroku版本来检查这个问题是否只是一个错误?

虽然这不是你的问题,但我想向你推荐宝石卫士。有没有理由更喜欢自动测试来保护?

https://github.com/guard/guard