Skip to content

Commit a7ba525

Browse files
Set payment method to none
By default Solidus is now looking for `solidus_paypal_commerce_platform`, however, with the sandbox and the dummy generator we need to set this to `none`, otherwise these scripts are not running successfully. This commit fixes that. It does not update the application template for Heroku though. That will be a seperate PR.
1 parent 4422628 commit a7ba525

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

bin/sandbox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ unbundled bin/rails generate solidus:install \
6666
--user_class=Spree::User \
6767
--enforce_available_locales=true \
6868
--with_authentication=false \
69+
--payment-method=none
6970
$@
7071

7172
unbundled bin/rails generate solidus:auth:install

core/lib/spree/testing_support/common_rake.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
ENV["RAILS_ENV"] = 'test'
1515

1616
Spree::DummyGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--quiet"]
17-
Solidus::InstallGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--auto-accept", "--with-authentication=false", "--migrate=false", "--seed=false", "--sample=false", "--quiet", "--user_class=#{args[:user_class]}"]
17+
Solidus::InstallGenerator.start ["--lib_name=#{ENV['LIB_NAME']}", "--auto-accept", "--with-authentication=false", "--payment-method=none", "--migrate=false", "--seed=false", "--sample=false", "--quiet", "--user_class=#{args[:user_class]}"]
1818

1919
puts "Setting up dummy database..."
2020

0 commit comments

Comments
 (0)