Skip to content

Commit 539cb5e

Browse files
hsbtclaude
authored andcommitted
[ruby/rubygems] Use eq matcher instead of be for string comparison in newgem template
be checks object identity which will fail for newly-allocated strings. eq checks value equality and is the correct matcher here. ruby/rubygems@828440937b Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f5ad01e commit 539cb5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RSpec.describe <%= config[:constant_name] %> do
99
it "can call into Rust" do
1010
result = <%= config[:constant_name] %>.hello("world")
1111

12-
expect(result).to be("Hello world, from Rust!")
12+
expect(result).to eq("Hello world, from Rust!")
1313
end
1414
<%- else -%>
1515
it "does something useful" do

0 commit comments

Comments
 (0)