From 0cd3f4a8b96f181dbe508f2cc3f8a0dcb7e46b8e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 1 Jul 2020 18:12:14 +0200 Subject: [PATCH] [bug] enabling auth_provider from the tests happens twice in coverall context --- CHANGELOG.md | 1 + test/integration/auth_providers_test.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3a84421f..c17244d45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Fix a bug: health API is broken if ElasticSearch is not present - Fix a bug: unable to sync members with stripe - Fix a bug: version check is not working +- Fix a bug: enabling auth_provider from the tests happens twice in coverall context - [TODO DEPLOY] `rails fablab:maintenance:clean_workers` ## v4.5.1 2020 July 1st diff --git a/test/integration/auth_providers_test.rb b/test/integration/auth_providers_test.rb index 1f230e0b4..d985ab580 100644 --- a/test/integration/auth_providers_test.rb +++ b/test/integration/auth_providers_test.rb @@ -59,7 +59,7 @@ class AuthProvidersTest < ActionDispatch::IntegrationTest assert_equal 2, provider[:providable_attributes][:o_auth2_mappings_attributes].length # now let's activate this new provider - Fablab::Application.load_tasks + Fablab::Application.load_tasks if Rake::Task.tasks.empty? Rake::Task['fablab:auth:switch_provider'].invoke(name) db_provider.reload @@ -69,4 +69,4 @@ class AuthProvidersTest < ActionDispatch::IntegrationTest assert_not_nil u.auth_token end end -end \ No newline at end of file +end