Don't load tasks if they're already loaded

We were having problems under certain conditions with Travis and
Knapsack where tasks were still being loaded twice and so they were
being executed twice.
This commit is contained in:
Javi Martín
2018-11-30 17:28:59 +01:00
parent 85ac4e6c22
commit ea9576096b
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ require 'capybara/rails'
require 'capybara/rspec'
require 'selenium/webdriver'
Rails.application.load_tasks
Rails.application.load_tasks if Rake::Task.tasks.empty?
I18n.default_locale = :en
include Warden::Test::Helpers