Add webmock for external requests in tests
external_request.rb needs to be required before lint is run.
This commit is contained in:
parent
640be7497f
commit
6301072484
5 changed files with 47 additions and 1 deletions
|
|
@ -1,7 +1,12 @@
|
|||
require_relative 'external_request'
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
FactoryGirl.lint if CONFIG['factory_girl_lint']
|
||||
if CONFIG['factory_girl_lint']
|
||||
mock_commercial_request
|
||||
FactoryGirl.lint
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue