From 046d8e0b87bed76950f50944977d9975e192c528 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 20 Dec 2019 17:33:00 +0100 Subject: [PATCH] Explicitly configure `shoulda-matchers` in spec_helper This is apparently needed in Rails 4 --- spec/spec_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5eb8cad557..72f4627785 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -24,6 +24,14 @@ require 'paper_trail/frameworks/rspec' require 'webdrivers' +require 'shoulda/matchers' +Shoulda::Matchers.configure do |config| + config.integrate do |with| + with.test_framework :rspec + with.library :rails + end +end + # Allow connections to phantomjs/selenium whilst raising errors # when connecting to external sites require 'webmock/rspec'