From d7dd85bcc0108b05994df86362fc84c836be8062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Sun, 16 Sep 2018 00:17:02 +0200 Subject: [PATCH] Add Shoulda Matchers 3 configuration From version 3.0.0 it is needed to specfied which test framework you're using and which portion of the matchers you want to use in `rails_helper.rb` (or the old `spec_helper.rb` in our case). --- spec/spec_helper.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e9d32f4a..58a09f88 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -122,3 +122,10 @@ RSpec.configure do |config| end OmniAuth.config.test_mode = true + +Shoulda::Matchers.configure do |config| + config.integrate do |with| + with.test_framework :rspec + with.library :rails + end +end