我是一个刚接触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)
有小费吗?