Skip to content

Commit

Permalink
Use new dummy app tailwind in admin gem
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Jun 20, 2024
1 parent e1b1a48 commit 1d2d045
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions admin/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'
require 'spree/testing_support/dummy_app/rake_tasks'
require 'solidus_admin/testing_support/dummy_app/rake_tasks'
require 'bundler/gem_tasks'

namespace :tailwindcss do
Expand Down
9 changes: 4 additions & 5 deletions admin/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
mount Spree::Core::Engine, at: '/'
end

unless SolidusAdmin::Engine.root.join('app/assets/builds/solidus_admin/tailwind.css').exist?
Dir.chdir(SolidusAdmin::Engine.root) do
system 'bundle exec rake tailwindcss:build' or abort 'Failed to build Tailwind CSS'
end
end
require "solidus_admin/testing_support/admin_assets"

# RAILS
require "rspec/rails"
Expand Down Expand Up @@ -111,6 +107,9 @@
config.before do
Rails.cache.clear
end
config.define_derived_metadata(file_path: %r{spec/features}) do |metadata|
metadata[:solidus_admin] = true
end

config.include FactoryBot::Syntax::Methods

Expand Down

0 comments on commit 1d2d045

Please sign in to comment.