mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Explicitly configure shoulda-matchers in spec_helper
This is apparently needed in Rails 4
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user