Sha256: f648e8f050d1962cdafc4788979aaa4043b5b2886a8169e047732980f4172648

Contents?: true

Size: 534 Bytes

Versions: 2

Compression:

Stored size: 534 Bytes

Contents

require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
  source_root Rails.root

  def update_app
    Bundler.with_clean_env do
      run "bundle install"
    end
  end

  def run_qa_installer
    generate "qa:install"
  end

  def run_local_authority_installer
    generate "qa:local"
  end

  def copy_local_authority_fixtures
    directory "../fixtures/authorities", "config/authorities"
  end

  def run_migrations
    rake "qa:install:migrations"
    rake "db:migrate"
    rake "db:test:prepare"
  end

end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
qa-0.3.0 spec/internal/lib/generators/test_app_generator.rb
qa-0.3.0 spec/test_app_templates/lib/generators/test_app_generator.rb