Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Added: TemplateRunner gem :env option

#1983

Some gems are only needed in development/test. This patch adds the following syntax to TemplateRunner:


gem 'rspec', :env => 'test'

The gem dependency is appended to config/environments/test.rb instead of the Rails::Initializer block in config/environment.rb

(This also adds a new method #append_file to TemplateRunner)

Reported by Andrew Vit · February 16th, 2009 @ 04:20 AM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Andrew Vit
    Andrew Vit

    Fixed: remove comma in option string if the only option is :env

    Updated patch...

    February 16th, 2009 @ 05:44 AM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [16b3d2b621b1682f249209097c31b0a10f0f87ef]) Added :env option for gem in template runner [#1983 Added: TemplateRunner gem :env option state:resolved]

    For installing gems that are only needed in the test environment, specify the :env option so the dependency is written to config/environments/test.rb:

    gem 'rspec', :env => 'test'
    gem 'quietbacktrace', :env => %w[development test]
    
    

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    February 28th, 2009 @ 06:01 PM