From 93fa687a00602b3bde680ba6e3d87e1a83edb465 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 29 Dec 2023 11:55:47 +0100 Subject: [PATCH] Remove Solidus 3.2 setup code We only support Solidus 4.x now and can finally remove this complicated setup code. --- Rakefile | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Rakefile b/Rakefile index 3991c9b..fbe6eb6 100644 --- a/Rakefile +++ b/Rakefile @@ -12,25 +12,12 @@ RSpec::Core::RakeTask.new(:spec) task default: %i[test_setup spec] -require "active_support/core_ext/string" - desc "Setup test app" task :test_setup do solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.2") - solidus_32_install_options = - "--payment-method none --frontend none --no-with-authentication" - solidus_33_install_options = - "--payment-method none --frontend none --authentication none" - solidus_install_options = - ( - if solidus_version == "3.2" - solidus_32_install_options - else - solidus_33_install_options - end - ) + solidus_install_options = "--payment-method none --frontend none --authentication none" Dir.chdir("spec/dummy") do - system <<-SETUP.strip_heredoc + system <<~SETUP bin/rake db:environment:set db:drop && \ bin/rake gutentag:install:migrations && \ bin/rails g gutentag:migration_versions && \