Explicitly configure shoulda-matchers in spec_helper

This is apparently needed in Rails 4
This commit is contained in:
Matt-Yorkley
2019-12-20 17:33:00 +01:00
committed by Luis Ramos
parent 16d56a8cbd
commit 046d8e0b87

View File

@@ -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'