You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Gemfile generated by bundle gem may already contain the gem 'rspec'. (This depends on BUNDLE_GEM__TEST)
In that case, the following error will occur:
[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.
You specified: rspec (~> 3.0) and rspec (>= 0). Bundler cannot continue.
# from /path/to/Gemfile:13
# -------------------------------------------
# gem "rubocop", "~> 1.21"
> gem 'rspec'
# -------------------------------------------
The Gemfile generated by
bundle gem
may already contain thegem 'rspec'
. (This depends on BUNDLE_GEM__TEST)In that case, the following error will occur:
rubocop-extension-generator/lib/rubocop/extension/generator/generator.rb
Lines 136 to 138 in eb0bc98
I think the expected behavior is not to add it if
gem 'rspec', ...
is already included.The text was updated successfully, but these errors were encountered: