Skip to content

Commit

Permalink
Remove Solidus 3.2 setup code
Browse files Browse the repository at this point in the history
We only support Solidus 4.x now and can finally remove this
complicated setup code.
  • Loading branch information
tvdeyen committed Dec 29, 2023
1 parent 98e8dbe commit 93fa687
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 93fa687

Please sign in to comment.