Sha256: c01f47516c68fee6108ee3c8630a53d22af996656a62b4b3f9643d7a1ab6dde1

Contents?: true

Size: 588 Bytes

Versions: 12

Compression:

Stored size: 588 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  source_root '../../spec/test_app_templates'

  def install_engine
    generate 'curation_concerns:install', '-f'
  end

  def run_migrations
    rake 'db:migrate'
  end

  def generate_generic_work
    generate 'curation_concerns:work GenericWork'
  end

  def remove_generic_work_specs
    remove_file 'spec/models/generic_work_spec.rb'
    remove_file 'spec/controllers/curation_concerns/generic_works_controller_spec.rb'
    remove_file 'spec/actors/curation_concerns/generic_work_actor_spec.rb'
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
curation_concerns-0.12.0.pre1 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.11.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.11.0.rc1 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.10.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.9.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.8.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.7.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.6.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.5.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.4.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.3.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-0.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb