mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Don't require support/external_request from rake tasks
If we require this we're requiring everything that support/external_request requires for production.
This commit is contained in:
parent
fd8dbfe7a7
commit
9c2ef19741
2 changed files with 2 additions and 6 deletions
|
|
@ -1,12 +1,9 @@
|
|||
require_relative '../../spec/support/external_request'
|
||||
|
||||
namespace :factory_girl do
|
||||
desc "Verify that all FactoryGirl factories are valid"
|
||||
task lint: :environment do
|
||||
if Rails.env.test?
|
||||
begin
|
||||
DatabaseCleaner.start
|
||||
mock_commercial_request
|
||||
FactoryGirl.lint
|
||||
ensure
|
||||
DatabaseCleaner.clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue