Sha256: 1b95f4c8a8353785048b3592c622208a75554c5a09ea1d8e27f6c9cfb7c48e8d

Contents?: true

Size: 622 Bytes

Versions: 41

Compression:

Stored size: 622 Bytes

Contents

require 'rails/generators'

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

  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

41 entries across 41 versions & 1 rubygems

Version Path
curation_concerns-1.6.3 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.6.2 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.6.1 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.6.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.5.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.4.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.3.3 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.3.2 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.3.1 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.3.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.2.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.1.2 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.1.1 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.1.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.0.0 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.0.0.beta10 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.0.0.beta9 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.0.0.beta8 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.0.0.beta7 spec/test_app_templates/lib/generators/test_app_generator.rb
curation_concerns-1.0.0.beta6 spec/test_app_templates/lib/generators/test_app_generator.rb