gpt4 book ai didi

ruby-on-rails - 为什么 AutoTest 卡住在 "loading autotest/rails_rspec2"for rails 3

转载 作者:数据小太阳 更新时间:2023-10-29 08:54:15 25 4
gpt4 key购买 nike

每当我在 Rails 3 应用程序上运行自动测试(还没有自定义测试)时,它会挂起在 loading autotest/rails_rspec2 并且我对 Rails 仍然非常陌生,不知道要检查/寻找什么。 我已经包含了我的 gemfile,以防存在已知的兼容性问题。如果您还需要什么,请告诉我,谢谢!

编辑我在 Ubuntu 10.10 上运行以防万一。

$ autotest
loading autotest/rails_rspec2

gem 文件

source 'http://rubygems.org'

gem 'rails'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'
gem 'sqlite3'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem "haml"
gem "formtastic"
gem "will_paginate"
gem "devise"
gem "omniauth"
gem "cancan"
gem "delayed_job"
gem "whenever"
gem "memcache-client"
gem "capistrano"
gem "mail"
gem "haml-rails"
gem "compass"
gem "jquery-rails"
gem "rack-mount"

group :development, :test do
gem "rspec"
gem "rspec-rails", ">= 2.5.0"
gem "autotest-standalone"
gem "autotest-rails"
end

group :testing do
gem "mocha"
gem "shoulda"
gem "factory_girl_rails"
end

group :development do
gem "cheat"
gem "bullet"
gem "ruby-growl"

end

gem 版本

aaronh-chronic (0.3.9)
abstract (1.0.0)
actionmailer (3.0.5)
actionpack (3.0.5)
activemodel (3.0.5)
activerecord (3.0.5)
activeresource (3.0.5)
activesupport (3.0.5)
addressable (2.2.4)
arel (2.0.9)
autotest (4.4.6)
autotest-notification (2.3.1)
autotest-rails (4.1.0)
autotest-standalone (4.5.5)
bcrypt-ruby (2.1.4)
builder (2.1.2)
bullet (2.0.1)
bundler (1.0.11)
cancan (1.6.4, 1.6.3)
capistrano (2.5.20)
cheat (1.3.0)
compass (0.10.6)
daemons (1.1.0)
delayed_job (2.1.4)
devise (1.2.1)
diff-lcs (1.1.2)
erubis (2.6.6)
factory_girl (1.3.3)
factory_girl_rails (1.0.1)
faraday (0.5.7)
formtastic (1.2.3)
haml (3.0.25)
haml-rails (0.3.4)
highline (1.6.1)
i18n (0.5.0)
jquery-rails (0.2.7)
mail (2.2.15)
memcache-client (1.8.5)
meta_where (1.0.4)
mime-types (1.16)
mocha (0.9.12)
multi_json (0.0.5)
multipart-post (1.1.0)
mysql2 (0.2.7)
net-ldap (0.1.1)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.1.3)
net-ssh-gateway (1.0.1)
nokogiri (1.4.4)
oa-basic (0.2.0)
oa-core (0.2.0)
oa-enterprise (0.2.0)
oa-more (0.2.0)
oa-oauth (0.2.0)
oa-openid (0.2.0)
oauth (0.4.4)
oauth2 (0.1.1)
omniauth (0.2.0)
orm_adapter (0.0.4)
paperclip (2.3.8)
polyglot (0.3.1)
pyu-ruby-sasl (0.0.3.2)
rack (1.2.2)
rack-mount (0.6.14)
rack-openid (1.2.0)
rack-test (0.5.7)
rails (3.0.5)
railties (3.0.5)
rake (0.8.7)
rest-client (1.6.1)
rspec (2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
ruby-growl (3.0)
ruby-openid (2.1.8)
ruby-openid-apps-discovery (1.2.0)
rubyntlm (0.1.1)
shoulda (2.11.3)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.26, 0.3.25)
uniform_notifier (1.0.1)
warden (1.0.3)
whenever (0.6.7)
will_paginate (2.3.15)
ZenTest (4.5.0)

最佳答案

它可能没有挂起,而是没有找到任何要测试的东西。这可能是由于 this post关于 Rspec 的变化。

有关长期解决方案,请参阅该博客文章。简单的快速修复方法是:

autotest -s rspec2

关于ruby-on-rails - 为什么 AutoTest 卡住在 "loading autotest/rails_rspec2"for rails 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5574262/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com