Sha256: de85835de21964916f1e98eca2c179819af8e32e2ebede9dc3c673ebf98a7238
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root File.expand_path("../../../../support", __FILE__) def copy_test_fixtures copy_file "app/models/generic_content.rb" # Download controller copy_file "app/controllers/downloads_controller.rb" copy_file "spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml" # For testing Hydra::SubmissionWorkflow copy_file "spec/fixtures/hydra_test_generic_content.foxml.xml" end def copy_rspec_rake_task copy_file "lib/tasks/rspec.rake" end def run_blacklight_generator say_status("warning", "GENERATING BL", :yellow) generate 'blacklight', '--devise' end def run_hydra_head_generator say_status("warning", "GENERATING HH", :yellow) generate 'hydra:head', '-f' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hydra-core-7.0.0.pre2 | spec/support/lib/generators/test_app_generator.rb |
hydra-core-7.0.0.pre1 | spec/support/lib/generators/test_app_generator.rb |