Add webmock for external requests in tests

external_request.rb needs to be required before lint is run.
This commit is contained in:
Aditya Prakash 2016-02-20 20:08:28 +05:30
parent 640be7497f
commit 6301072484
5 changed files with 47 additions and 1 deletions

View file

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