Sha256: 53d0b751bb80d7dfbbdc0f2369d639f0bfed462ab926982ecebb49abdc9dd14f
Contents?: true
Size: 912 Bytes
Versions: 38
Compression:
Stored size: 912 Bytes
Contents
# frozen_string_literal: true require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path('../../../test_app_templates', __dir__) def remove_index remove_file "public/index.html" end def run_blacklight_generator say_status("warning", "GENERATING BL", :yellow) Bundler.with_clean_env do run "bundle install" end options = '--devise' if ENV['BLACKLIGHT_API_TEST'] options += ' --skip-assets' inject_into_class 'app/controllers/application_controller.rb', 'ApplicationController' do " include ActionController::MimeResponds\n" # see https://github.com/projectblacklight/blacklight/issues/1894 end end generate 'blacklight:install', options end def run_test_support_generator say_status("warning", "GENERATING test_support", :yellow) generate 'blacklight:test_support' end end
Version data entries
38 entries across 38 versions & 1 rubygems