Skip to content

Commit

Permalink
Include ActiveSupport::Testing::Assertions in spec helpers
Browse files Browse the repository at this point in the history
Since Rails 6.1 ActiveSupport::Testing::Assertions are not
auto-included by ActiveJob::TestHelper anymore.
  • Loading branch information
filippoliverani committed Feb 14, 2020
1 parent cfe22df commit 50007f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
Rails.cache.clear
end

config.include ActiveSupport::Testing::Assertions
config.include ActiveJob::TestHelper

config.use_transactional_fixtures = true
Expand Down
1 change: 1 addition & 0 deletions backend/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
end

config.include FactoryBot::Syntax::Methods
config.include ActiveSupport::Testing::Assertions
config.include ActiveJob::TestHelper

config.include Spree::TestingSupport::Preferences
Expand Down
1 change: 1 addition & 0 deletions core/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
Rails.cache.clear
end

config.include ActiveSupport::Testing::Assertions
config.include ActiveJob::TestHelper
config.include FactoryBot::Syntax::Methods
end

0 comments on commit 50007f7

Please sign in to comment.