summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/newgem_spec.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2023-02-04 15:22:13 +0900
committergit <svn-admin@ruby-lang.org>2023-02-06 16:19:46 +0000
commit77bec15c937a98d4d863c4a857d5619b41e529f1 (patch)
tree8ab58bac1a1b1dbeca1814fdf9b684dc8a01a85a /spec/bundler/commands/newgem_spec.rb
parent21dcf5d766befb46c5acffd174f507836e93504c (diff)
[rubygems/rubygems] Properly load the generated gemspec
The previous code loads bundler's gemspec which does not include the generated gemspec file, and thus the test was passing where it should indeed fail. With this change, the test properly fails now. https://github.com/rubygems/rubygems/commit/2098ea0d75
Diffstat (limited to 'spec/bundler/commands/newgem_spec.rb')
-rw-r--r--spec/bundler/commands/newgem_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb
index 5827f7380c..081e16944f 100644
--- a/spec/bundler/commands/newgem_spec.rb
+++ b/spec/bundler/commands/newgem_spec.rb
@@ -633,7 +633,7 @@ RSpec.describe "bundle gem" do
it "does not include the gemspec file in files" do
bundle "gem #{gem_name}"
- bundler_gemspec = Bundler::GemHelper.new(gemspec_dir).gemspec
+ bundler_gemspec = Bundler::GemHelper.new(bundled_app(gem_name), gem_name).gemspec
expect(bundler_gemspec.files).not_to include("#{gem_name}.gemspec")
end