Merge pull request #1297 from siddhantbajaj/Travis_Errors

fixed travis error
This commit is contained in:
Ana María Martínez Gómez 2017-02-21 18:14:43 +01:00 committed by GitHub
commit 7000e63700
7 changed files with 14 additions and 19 deletions

View file

@ -1,9 +1,11 @@
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

View file

@ -26,7 +26,6 @@ namespace :data do
dot_env.puts "OSEM_ICHAIN_ENABLED=\"#{CONFIG['authentication']['ichain']['enabled']}\"" if CONFIG.has_key?(:authentication)
dot_env.puts "OSEM_TRANSIFEX_APIKEY=\"#{CONFIG['transifex_live_api_key']}\""
dot_env.puts "OSEM_ERRBIT_HOST=\"#{CONFIG['errbit_host']}\""
dot_env.puts "OSEM_FACTORY_LINT=\"#{CONFIG['factory_girl_lint']}\""
dot_env.puts "OSEM_SMTP_ADDRESS=\"#{CONFIG['mail_address']}\""
dot_env.puts "OSEM_SMTP_PORT=\"#{CONFIG['mail_port']}\""
dot_env.puts "OSEM_SMTP_USERNAME=\"#{CONFIG['mail_username']}\""