Sha256: cc07bb99c749cf63d50290236bf6e5c2de49f096aa585739f1db091f83c115e7

Contents?: true

Size: 403 Bytes

Versions: 8

Compression:

Stored size: 403 Bytes

Contents

require 'rails/generators'

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

  def inject_routes
    insert_into_file "config/routes.rb", :after => ".draw do" do
      %{

  mount Qa::Engine => '/qa'

      }
    end
  end

  def copy_configs
    copy_file "../../config/oclcts-authorities.yml", "config/oclcts-authorities.yml"
  end

end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
qa-0.1.0 spec/internal/lib/generators/test_app_generator.rb
qa-0.1.0 spec/support/lib/generators/test_app_generator.rb
qa-0.0.3 spec/internal/lib/generators/test_app_generator.rb
qa-0.0.3 spec/support/lib/generators/test_app_generator.rb
qa-0.0.2 spec/internal/lib/generators/test_app_generator.rb
qa-0.0.2 spec/support/lib/generators/test_app_generator.rb
qa-0.0.1 spec/internal/lib/generators/test_app_generator.rb
qa-0.0.1 spec/support/lib/generators/test_app_generator.rb