Skip to content

Commit

Permalink
Rake passing 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
davebenvenuti committed Jan 13, 2025
1 parent 0c708a1 commit 11896a2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/codegen_compatibility_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,17 @@ def codegen_string(string, name: find_test_name)

[
Module.new { module_eval boeuf_code },
Module.new { module_eval protoc_code.join("\n") },
Module.new do
module_eval(
# This gsub is a temporary workaround because protoc doesn't properly qualify the global Google module and
# this particular line ends up resolving to Protoboeuf::Google::Protobuf::DescriptorPool, which doesn't
# exist.
protoc_code.join("\n").gsub(
"pool = Google::Protobuf::DescriptorPool.generated_pool",
"pool = ::Google::Protobuf::DescriptorPool.generated_pool",
),
)
end,
]
end
end
Expand Down

0 comments on commit 11896a2

Please sign in to comment.