From 96037180ea1429aef7e0144a517c5888c7841dda Mon Sep 17 00:00:00 2001 From: Bruce Bolt Date: Thu, 15 Aug 2024 08:48:28 +0100 Subject: [PATCH] Require `active_support` in pact helper As per https://github.com/rails/rails/issues/52582, one must `require active_support` before requiring any other definition(s) like `active_support/core_ext/module/delegation`, which is included by `factory_bot_rails`. Therefore requiring `active_support` here, until https://github.com/thoughtbot/factory_bot/issues/1685 is resolved. --- spec/service_consumers/pact_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/service_consumers/pact_helper.rb b/spec/service_consumers/pact_helper.rb index f3d2d572..a346691b 100644 --- a/spec/service_consumers/pact_helper.rb +++ b/spec/service_consumers/pact_helper.rb @@ -1,3 +1,4 @@ +require "active_support" require "pact/provider/rspec" require "webmock/rspec" require "factory_bot_rails"