From 1e9c517477630d79bf7f0abbc827c95b26ee7a34 Mon Sep 17 00:00:00 2001 From: johnnyshields Date: Thu, 13 Apr 2023 00:35:12 +0900 Subject: [PATCH] Enable app tests by default --- spec/integration/app_spec.rb | 4 ---- spec/support/spec_config.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/integration/app_spec.rb b/spec/integration/app_spec.rb index 8dbfd11b2..f64f57a2f 100644 --- a/spec/integration/app_spec.rb +++ b/spec/integration/app_spec.rb @@ -21,10 +21,6 @@ def insert_rails_gem_version(cmd) describe 'Mongoid application tests' do before(:all) do - unless SpecConfig.instance.app_tests? - skip 'Set APP_TESTS=1 in environment to run application tests' - end - require 'fileutils' require 'mrss/child_process_helper' require 'open-uri' diff --git a/spec/support/spec_config.rb b/spec/support/spec_config.rb index f1d55478b..481b49410 100644 --- a/spec/support/spec_config.rb +++ b/spec/support/spec_config.rb @@ -49,7 +49,7 @@ def client_debug? end def app_tests? - %w(1 true yes).include?(ENV['APP_TESTS']&.downcase) + !%w(0 false no).include?(ENV['APP_TESTS']&.downcase) end def ci?