Skip to content

Commit bea50ba

Browse files
committed
Remove hard coded constant
1 parent 376ace6 commit bea50ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RSpec.describe <%= config[:constant_name] %> do
77

88
<%- if config[:ext] == 'rust' -%>
99
it "can call into Rust" do
10-
result = Testing.hello("world")
10+
result = <%= config[:constant_name] %>.hello("world")
1111

1212
expect(result).to be("Hello earth, from Rust!")
1313
end

bundler/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class <%= config[:minitest_constant_name] %> < Minitest::Test
99

1010
<%- if config[:ext] == 'rust' -%>
1111
def test_hello_world
12-
assert_equal "Hello earth, from Rust!", Testing.hello("world")
12+
assert_equal "Hello earth, from Rust!", <%= config[:constant_name] %>.hello("world")
1313
end
1414
<%- else -%>
1515
def test_it_does_something_useful

0 commit comments

Comments
 (0)