From fe25c2cbacf66dfd75790042b02d2bde51092936 Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Thu, 30 May 2024 23:30:19 -0400 Subject: [ruby/rubygems] Remove hard coded constant https://github.com/ruby/rubygems/commit/da14b90859 --- lib/bundler/templates/newgem/spec/newgem_spec.rb.tt | 2 +- lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt b/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt index 6552c4addd..dd39342f78 100644 --- a/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +++ b/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt @@ -7,7 +7,7 @@ RSpec.describe <%= config[:constant_name] %> do <%- if config[:ext] == 'rust' -%> it "can call into Rust" do - result = Testing.hello("world") + result = <%= config[:constant_name] %>.hello("world") expect(result).to be("Hello earth, from Rust!") end diff --git a/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt b/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt index 3c7d8b096e..9a859fa4d1 100644 --- a/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +++ b/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt @@ -9,7 +9,7 @@ class <%= config[:minitest_constant_name] %> < Minitest::Test <%- if config[:ext] == 'rust' -%> def test_hello_world - assert_equal "Hello earth, from Rust!", Testing.hello("world") + assert_equal "Hello earth, from Rust!", <%= config[:constant_name] %>.hello("world") end <%- else -%> def test_it_does_something_useful -- cgit v1.2.3