From 50007f7a5e39159381d84585f58ee201dd3b73ad Mon Sep 17 00:00:00 2001 From: Filippo Liverani Date: Fri, 14 Feb 2020 12:06:34 +0100 Subject: [PATCH] Include ActiveSupport::Testing::Assertions in spec helpers Since Rails 6.1 ActiveSupport::Testing::Assertions are not auto-included by ActiveJob::TestHelper anymore. --- api/spec/spec_helper.rb | 1 + backend/spec/spec_helper.rb | 1 + core/spec/rails_helper.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/api/spec/spec_helper.rb b/api/spec/spec_helper.rb index 78fd73a6b74..1c1b01aaa73 100644 --- a/api/spec/spec_helper.rb +++ b/api/spec/spec_helper.rb @@ -61,6 +61,7 @@ Rails.cache.clear end + config.include ActiveSupport::Testing::Assertions config.include ActiveJob::TestHelper config.use_transactional_fixtures = true diff --git a/backend/spec/spec_helper.rb b/backend/spec/spec_helper.rb index 456c8f2be7a..1db63f75371 100644 --- a/backend/spec/spec_helper.rb +++ b/backend/spec/spec_helper.rb @@ -106,6 +106,7 @@ end config.include FactoryBot::Syntax::Methods + config.include ActiveSupport::Testing::Assertions config.include ActiveJob::TestHelper config.include Spree::TestingSupport::Preferences diff --git a/core/spec/rails_helper.rb b/core/spec/rails_helper.rb index 8a2e1408472..4898f9641ec 100644 --- a/core/spec/rails_helper.rb +++ b/core/spec/rails_helper.rb @@ -41,6 +41,7 @@ Rails.cache.clear end + config.include ActiveSupport::Testing::Assertions config.include ActiveJob::TestHelper config.include FactoryBot::Syntax::Methods end