From 9f758fe4b0bcaca7b6ce2899461f2a12e93f7d2f Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 20 Mar 2024 11:29:15 -0400 Subject: [PATCH] Configure shoulda matchers to integrate with rspec --- spec/support/shoulda_matchers.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 spec/support/shoulda_matchers.rb diff --git a/spec/support/shoulda_matchers.rb b/spec/support/shoulda_matchers.rb new file mode 100644 index 00000000000..edcf9dd8590 --- /dev/null +++ b/spec/support/shoulda_matchers.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +Shoulda::Matchers.configure do |config| + config.integrate do |with| + with.test_framework :rspec + with.library :rails + end +end