File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
lib/generators/blacklight Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ def generate_devise_assets
3535 generate "devise_guests" , model_name . classify
3636
3737 gsub_file ( "config/initializers/devise.rb" , "config.sign_out_via = :delete" , "config.sign_out_via = :get" )
38+ # Work around for https://github.com/heartcombo/devise/issues/5720
39+ gsub_file ( "config/initializers/devise.rb" , "# config.reload_routes = true" , "config.reload_routes = false" )
3840 end
3941
4042 # Add Blacklight to the user model
Original file line number Diff line number Diff line change 33require 'engine_cart/rake_task'
44
55require 'rspec/core/rake_task'
6- RSpec ::Core ::RakeTask . new ( : spec) do |t |
6+ RSpec ::Core ::RakeTask . new ( spec : 'blacklight:build_host_assets' ) do |t |
77 t . pattern = 'spec/**/*_spec.rb'
88end
99
@@ -46,15 +46,18 @@ desc "Run test suite"
4646task ci : [ 'build:npm' ] do
4747 with_solr do
4848 Rake ::Task [ 'blacklight:internal:seed' ] . invoke
49- within_test_app do
50- # Precompiles the assets
51- system "bin/rake assets:precompile" # Required due to https://github.com/rails/propshaft/issues/211
52- end
5349 Rake ::Task [ 'blacklight:coverage' ] . invoke
5450 end
5551end
5652
5753namespace :blacklight do
54+ task :build_host_assets do
55+ within_test_app do
56+ # Precompiles the assets
57+ `bin/rails spec:prepare`
58+ end
59+ end
60+
5861 desc "Run tests with coverage"
5962 task :coverage do
6063 ENV [ 'COVERAGE' ] = 'true'
You can’t perform that action at this time.
0 commit comments