Don't load tasks several times in specs

Calling `load_tasks` in several files made rails load the tasks several
times, and so they were executed several times when called.

Since the milestone migration can't be executed twice in a row (it would
fail with duplicated ID records), loading the tasks several times made
the milestone migrations task specs fail.
This commit is contained in:
Javi Martín
2018-11-08 14:19:29 +01:00
parent cb891f21d4
commit 1a5b73a0bd
8 changed files with 1 additions and 32 deletions

View File

@@ -12,6 +12,7 @@ require 'capybara/rails'
require 'capybara/rspec'
require 'selenium/webdriver'
Rails.application.load_tasks
I18n.default_locale = :en
include Warden::Test::Helpers