【发布时间】:2014-09-07 22:56:57
【问题描述】:
我是一个刚接触 Rails 的 Django 人。我正在尝试让 rspec-rails 为我工作,但是当我运行时
$ bundle exec rails generate rspec:install
我明白了..
Could not find diff-lcs-1.2.5 in any of the sources
Run `bundle install` to install missing gems.
这很麻烦,因为
diff-lcs (1.2.5)
在 Gemfile.lock 中活得很好 我已删除 Gemfile.lock 并重新运行 bundle 无济于事。我也在我的 Gemfile 中添加了 gem 'diff-lcs'。
这就是我在 gemfile 中使用 rspec rails 的方式
group :development, :test do
gem 'rspec-rails'
end
有什么建议吗?
【问题讨论】:
-
您在使用任何
rails generate命令时是否会遇到同样的错误? (我愿意。) -
@user2642510:你在使用任何 gemset 吗?检查
gem list是否已安装diff-lcsgem 并再次运行 bundle install 并尝试检查此链接一次pastebin.com/3eAHN76H
标签: ruby-on-rails rspec bundler diff-lcs