小编arm*_*men的帖子

运行生成rspec:install时找不到差异

我是一个刚接触Rails的Django人.我试图让rspec-rails为我工作,但是当我跑步时

$ bundle exec rails generate rspec:install
Run Code Online (Sandbox Code Playgroud)

我明白了..

Could not find diff-lcs-1.2.5 in any of the sources
Run `bundle install` to install missing gems.
Run Code Online (Sandbox Code Playgroud)

这很麻烦,因为

diff-lcs (1.2.5)
Run Code Online (Sandbox Code Playgroud)

在Gemfile.lock中还活着,我删除了Gemfile.lock并重新运行bundle无济于事.我在我的Gemfile中添加了gem'diff-lcs'.

这是我在gemfile中使用rspec rails的方式

group :development, :test do
  gem 'rspec-rails'
end
Run Code Online (Sandbox Code Playgroud)

有小费吗?

rspec ruby-on-rails bundler diff-lcs

10
推荐指数
2
解决办法
1799
查看次数

标签 统计

bundler ×1

diff-lcs ×1

rspec ×1

ruby-on-rails ×1