This project is archived and is in readonly mode.
[BUG] [PATCH] Rails 3.0 should allow tests to run in 'cucumber' environment
-
Philippe Creux
- Title changed from Rails should allow test to run in 'cucumber' environment to Rails 3.0 should allow tests to run in 'cucumber' environment
-
Philippe Creux
- Tag set to rails 3, cucumber, environement, environments, rspec
- Title changed from Rails 3.0 should allow tests to run in 'cucumber' environment to [BUG] [PATCH] Rails 3.0 should allow tests to run in 'cucumber' environment
-
Rizwan Reza
- Milestone cleared.
- State changed from new to open
I am kinda skeptical on this one. The patch checks for development and production environment only while there's a good chance for a lot of Rails developers to define staging environment (much like production), among others.
I don't know, may be an environment variable can be taken into account when it's present?
-
Rizwan Reza
- Tag changed from rails 3, cucumber, environement, environments, rspec to rails 3, bugmash, cucumber, environement, environments, rspec
-
elcuervo
Perhaps changing ActiveSupport::StringInquirer and making it able to, depending on a [environment].rb, use a config.test = true or something like that?
-
Trotter Cashion
- Importance changed from to Low
Seems like having config.test_env = true is worthwhile. We (Trevor Menagh, Sean Greive, Trotter Cashion) created this patch to do just that. Will allow alternate test environments to declare themselves as test_envs.
-
Cesario
This ticket can be closed safely, the new condition is
Abort if Rails.env.production?
https://github.com/rails/rails/commit/672ce11d684e1211836ca22cf5b0c... -
Rohit Arondekar
- State changed from open to resolved
