Skip to content

Commit 62d81dd

Browse files
committed
Remove delegation to ERB::Util
It is unclear why we are delegating this method to `ERB::Util` instead of simply including the module.
1 parent 9762916 commit 62d81dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/service_consumers/pact_helper.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ def self.generate(_opts = {})
2020
config.include FactoryBot::Syntax::Methods
2121
end
2222

23-
delegate :url_encode, to: :'ERB::Util'
24-
2523
def stub_access_token_creation!
2624
# This stubs Doorkeeper so can ensure the token we generate is predictable, so we can run
2725
# the Pact tests with a dummy bearer token
@@ -31,6 +29,8 @@ def stub_access_token_creation!
3129
end
3230

3331
Pact.service_provider "Signon API" do
32+
include ERB::Util
33+
3434
honours_pact_with "GDS API Adapters" do
3535
if ENV["PACT_URI"]
3636
pact_uri(ENV["PACT_URI"])

0 commit comments

Comments
 (0)