Skip to content

Commit

Permalink
Require active_support in pact helper
Browse files Browse the repository at this point in the history
As per rails/rails#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
thoughtbot/factory_bot#1685 is resolved.

(Thanks to @brucebolt)
  • Loading branch information
KludgeKML committed Aug 21, 2024
1 parent 020541f commit fba63cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/service_consumer/pact_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ENV["PACT_DO_NOT_TRACK"] = "true"

require "active_support"
require "pact/provider/rspec"
require "webmock/rspec"
require "factory_bot_rails"
Expand Down

0 comments on commit fba63cb

Please sign in to comment.