From 08cfa6f8f26ba8c7d7a16bd2a50152d19cadf49c Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Tue, 3 Dec 2024 18:02:18 +0100 Subject: [PATCH] Extension generator: Do not always require solidus_auth_devise For integration specs, we can simply stub `spree_current_user` and `spree_user_signed_in?`. --- lib/solidus_dev_support/templates/extension/Gemfile.tt | 4 ---- lib/solidus_dev_support/templates/extension/Rakefile | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/solidus_dev_support/templates/extension/Gemfile.tt b/lib/solidus_dev_support/templates/extension/Gemfile.tt index 71655b7..c9a9f5d 100644 --- a/lib/solidus_dev_support/templates/extension/Gemfile.tt +++ b/lib/solidus_dev_support/templates/extension/Gemfile.tt @@ -20,10 +20,6 @@ end # See https://github.com/bundler/bundler/issues/6677 gem 'rails', '>0.a' -<% if file_name != 'solidus_auth_devise' %> -# Provides basic authentication functionality for testing parts of your engine -gem 'solidus_auth_devise' -<% end %> case ENV.fetch('DB', nil) when 'mysql' gem 'mysql2' diff --git a/lib/solidus_dev_support/templates/extension/Rakefile b/lib/solidus_dev_support/templates/extension/Rakefile index 30e2d3f..a6562a8 100644 --- a/lib/solidus_dev_support/templates/extension/Rakefile +++ b/lib/solidus_dev_support/templates/extension/Rakefile @@ -2,6 +2,6 @@ require "bundler/gem_tasks" require 'solidus_dev_support/rake_tasks' -SolidusDevSupport::RakeTasks.install(user_class: "Spree::User") +SolidusDevSupport::RakeTasks.install task default: 'extension:specs'