0.02
Low commit activity in last 3 years
A long-lived project that still receives updates
Rake task to generate a dummy Rails app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Rails::Dummy

Build Status A simple task to generate a dummy app for engines using RSpec or Test::Unit.

Installation

Add this line to your application's Gemfile:

gem 'rails-dummy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails-dummy

Usage

Add this to your Rakefile

require 'rails/dummy/tasks'

Now you should be able to run:

rake dummy:app

Customization via environment variables:

DUMMY_APP_PATH - Specify path where dummy app will be located. Defaults to spec/dummy.

ENGINE - Specify engine name migrations to be installed via rake ENGINE:install:migrations. Defaults to nil; engine specific migrations are not installed.

DISABLE_CREATE - Don't run db:create.

DISABLE_MIGRATE - Don't run db:migrate db:test:prepare after creating database.

Customization via .dummyrc

In addition to the environment variables, you can create a .dummyrc file which will be picked up by the dummy application generator.

This file follows the same syntax as the .railsrc file.

Projects using this gem

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes. Write some tests. (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

This gem was extracted from the http://coursewa.re project.