This time we are talking about Gem.
hoge.js
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
//Partially deleted//
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
group :development do
gem 'rubocop', require: false
end
gem 'rspec-rails', '~> 4.0.0'
gem 'factory_bot_rails'
gem 'faker'
//These three description positions are incorrect//
This time I tried to write faker, factorybot, rspec, etc. to write test code in rails. As some of you may have already noticed, these three descriptions should be written in group: development,: test do, not at the bottom. This time from I have no problems masu not even if Re you notice before you bundle install ends up is why I was wondering what to do because it was noticed. The conclusion of the solution is "" Delete Gemfile.lock under Gemfile, change the location and rebundle install "". Gemfile.lock is created by bundle install and regenerated by bundle install. Other installed gems will be processed without any problem, so please delete them with confidence! !!
Recommended Posts