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.10.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.9.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.8.1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.8.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.7.1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.7.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.6.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.5.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.4.1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.4.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.3.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.2.2 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.2.1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.2.0 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.2.0.rc1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.1.4 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.1.3 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.1.2 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.1.1 spec/support/lib/generators/test_app_generator.rb
hydra-core-9.1.0 spec/support/lib/generators/test_app_generator.rb