This project is archived and is in readonly mode.
Added: TemplateRunner gem :env option
Reported by Andrew Vit | February 16th, 2009 @ 04:20 AM | in 2.x
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)
Comments and changes to this ticket
-
Andrew Vit February 16th, 2009 @ 05:44 AM
Fixed: remove comma in option string if the only option is :env
Updated patch...
-
Repository February 28th, 2009 @ 06:01 PM
- State changed from new to resolved
(from [16b3d2b621b1682f249209097c31b0a10f0f87ef]) Added :env option for gem in template runner [#1983 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...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
- Nobody is watching this ticket.
Attachments
Referenced by
- 1983 Added: TemplateRunner gem :env option (from [16b3d2b621b1682f249209097c31b0a10f0f87ef]) Added :...