diff options
author | Utkarsh Gupta <utkarsh@debian.org> | 2020-06-16 19:07:21 +0530 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-18 19:14:15 +0900 |
commit | 22ee047f7328f05e75634d4c4b177a94642c4032 (patch) | |
tree | 40bf9fbdb0d574c41334a6f779f6de100741d76d /spec/bundler | |
parent | ec98d5615360c33fa2419b22cf2ac7d1834d9c18 (diff) |
[rubygems/rubygems] Only add .rubocop.yml when --rubocop flag is passed
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/ef2dae4222
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3212
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/commands/newgem_spec.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb index 0216e31019..d0add6dfde 100644 --- a/spec/bundler/commands/newgem_spec.rb +++ b/spec/bundler/commands/newgem_spec.rb @@ -326,7 +326,6 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/lib/#{require_path}.rb")).to exist expect(bundled_app("#{gem_name}/lib/#{require_path}/version.rb")).to exist expect(bundled_app("#{gem_name}/.gitignore")).to exist - expect(bundled_app("#{gem_name}/.rubocop.yml")).to exist expect(bundled_app("#{gem_name}/bin/setup")).to exist expect(bundled_app("#{gem_name}/bin/console")).to exist @@ -385,12 +384,6 @@ RSpec.describe "bundle gem" do expect(bundled_app("#{gem_name}/lib/#{require_path}.rb").read).to match(/class Error < StandardError; end$/) end - it "creates a default .rubocop.yml" do - bundle "gem #{gem_name}" - - expect(bundled_app("#{gem_name}/.rubocop.yml")).to exist - end - it "runs rake without problems" do bundle "gem #{gem_name}" |