我有一个关于gem ZenTest的问题,我的gemfile中没有ZenTest,当我想用“rails generate integration_test layout link”生成一个集成测试时,我有这个错误:
could not find ZenTest-4.11.0 in any any of the source所以我尝试了bundle install和bundle update,但是没有什么改变,我也尝试安装ZenTest,我仍然有同样的错误
gemefile.lock:
specs:
abstract (1.0.0)
actionmailer (3.0.7)
actionpack (= 3.0.7)
mail (~> 2.2.15)
actionpack (3.0.7)
activemodel (= 3.0.7)
activesupport (= 3.0.7)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.5.0)
rack (~> 1.2.1)
rack-mount (~> 0.6.14)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.0.7)
activesupport (= 3.0.7)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.7)
activemodel (= 3.0.7)
activesupport (= 3.0.7)
arel (~> 2.0.2)
tzinfo (~> 0.3.23)
activeresource (3.0.7)
activemodel (= 3.0.7)
activesupport (= 3.0.7)
activesupport (3.0.7)
annotate (2.4.0)
arel (2.0.10)
builder (2.1.2)
diff-lcs (1.1.3)
erubis (2.6.6)
abstract (>= 1.0.0)
i18n (0.5.4)
mail (2.2.20)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25.1)
mini_portile2 (2.0.0)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
polyglot (0.3.5)
rack (1.2.8)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.7)
actionmailer (= 3.0.7)
actionpack (= 3.0.7)
activerecord (= 3.0.7)
activeresource (= 3.0.7)
activesupport (= 3.0.7)
bundler (~> 1.0)
railties (= 3.0.7)
railties (3.0.7)
actionpack (= 3.0.7)
activesupport (= 3.0.7)
rake (>= 0.8.7)
thor (~> 0.14.4)
rake (11.1.2)
rspec (2.5.0)
rspec-core (~> 2.5.0)
rspec-expectations (~> 2.5.0)
rspec-mocks (~> 2.5.0)
rspec-core (2.5.2)
rspec-expectations (2.5.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.5.0)
sqlite3 (1.3.11)
thor (0.14.6)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.48)
webrat (0.7.1)
nokogiri (>= 1.2.0)
rack (>= 1.0)
rack-test (>= 0.5.3)依赖关系
annotate (= 2.4.0)
rails (= 3.0.7)
rake (= 11.1.2)
rspec (= 2.5.0)
rspec-rails (= 2.5.0)
sqlite3
webrat (= 0.7.1)发布于 2016-04-12 16:09:19
你在回答你自己的问题,不是吗?或者,你是指别的什么吗?
我的gemfile中没有ZenTest
好吧,那就加上它吧!
# In your Gemfile
gem 'ZenTest'然后执行bundle install。
更新:查看截图,似乎你的Gemfile格式不正确。请查看版本约束。
https://stackoverflow.com/questions/36566625
复制相似问题