Sha256: 00c1ac9abe12d28817d4574ceb2cbcf98bdbdc1a0e8ece04247d4351ad1f8b56

Contents?: true

Size: 699 Bytes

Versions: 27

Compression:

Stored size: 699 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  source_root File.expand_path("../../../../support", __FILE__)

  def copy_test_classes
    # Download controller
    copy_file "app/controllers/downloads_controller.rb"
  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:install', '--devise'
  end

  def run_hydra_head_generator
    say_status("warning", "GENERATING HH", :yellow)       

    generate 'hydra:head', '-f --skip-rspec'
  end

  def remove_generated_user_spec
    remove_file 'spec/models/user_spec.rb'
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
hydra-core-9.0.1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.0.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.0.0.rc3 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.0.0.rc2 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.0.0.rc1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.0.0.beta2 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.0.0.beta1 spec/support/lib/generators/test_app_generator.rb