summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGuilherme Carreiro <karreiro@gmail.com>2024-04-25 21:24:32 +0200
committergit <svn-admin@ruby-lang.org>2024-10-30 23:09:12 +0000
commitc3fea18094988f965cb14ca775c25f757df277b5 (patch)
tree73d892cb883e7f73ea01650bdac55a92af394972 /spec
parent22abcce704cf3d82aaa9af5b8ae4e6bf628502ea (diff)
[rubygems/rubygems] Update `--ext=rust` to support compiling the native extension from source
https://github.com/rubygems/rubygems/commit/9b0ec807c7
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/newgem_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb
index 668bc0f95e..9a5bc9c24f 100644
--- a/spec/bundler/commands/newgem_spec.rb
+++ b/spec/bundler/commands/newgem_spec.rb
@@ -1518,7 +1518,7 @@ RSpec.describe "bundle gem" do
it "includes rake-compiler, but no Rust related changes" do
expect(bundled_app("#{gem_name}/Gemfile").read).to include('gem "rake-compiler"')
- expect(bundled_app("#{gem_name}/Gemfile").read).to_not include('gem "rb_sys"')
+ expect(bundled_app("#{gem_name}/#{gem_name}.gemspec").read).to_not include('spec.add_dependency "rb_sys"')
expect(bundled_app("#{gem_name}/#{gem_name}.gemspec").read).to_not include('spec.required_rubygems_version = ">= ')
end
@@ -1578,7 +1578,7 @@ RSpec.describe "bundle gem" do
it "includes rake-compiler, rb_sys gems and required_rubygems_version constraint" do
expect(bundled_app("#{gem_name}/Gemfile").read).to include('gem "rake-compiler"')
- expect(bundled_app("#{gem_name}/Gemfile").read).to include('gem "rb_sys"')
+ expect(bundled_app("#{gem_name}/#{gem_name}.gemspec").read).to include('spec.add_dependency "rb_sys"')
expect(bundled_app("#{gem_name}/#{gem_name}.gemspec").read).to include('spec.required_rubygems_version = ">= ')
end