summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/newgem_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/commands/newgem_spec.rb')
-rw-r--r--spec/bundler/commands/newgem_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb
index f0f55ae2d5..c45cc8dfd4 100644
--- a/spec/bundler/commands/newgem_spec.rb
+++ b/spec/bundler/commands/newgem_spec.rb
@@ -177,12 +177,10 @@ RSpec.describe "bundle gem" do
it "run rubocop inside the generated gem with no offenses" do
prepare_gemspec(bundled_app("#{gem_name}", "#{gem_name}.gemspec"))
-
- gems = ["rubocop"]
+ gems = ["rake", "rubocop"]
path = Bundler.feature_flag.default_install_uses_path? ? local_gem_path(:base => bundled_app("#{gem_name}")) : system_gem_path
realworld_system_gems gems, :path => path
- bundle "install", :dir => bundled_app("#{gem_name}")
- bundle "exec rubocop", :dir => bundled_app("#{gem_name}")
+ bundle "exec rubocop --ignore-parent-exclusion", :dir => bundled_app("#{gem_name}")
expect($?.exitstatus).to eq(0) if exitstatus
end
end