From 371b3e803fdaf7e9eb5a5579fb82c6f320eb5af2 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 3 Feb 2012 10:20:53 -0500 Subject: [PATCH] shorten env --- README.md | 2 +- lib/vegetable_glue/cucumber.rb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2fc912f..425b47f 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ VegetableGlue.path = '../path/to/the/app' The app will clean its database on each scenario. To restart the app, pass in the environment variable `GLUE_RESTART`: - GLUE_RESTART=true bundle exec cucumber + REGLUE=true bundle exec cucumber If you're using ActiveResource, a good source of the URL is `ActiveResource::Base.site`. diff --git a/lib/vegetable_glue/cucumber.rb b/lib/vegetable_glue/cucumber.rb index 915e93c..30d8018 100644 --- a/lib/vegetable_glue/cucumber.rb +++ b/lib/vegetable_glue/cucumber.rb @@ -1,11 +1,10 @@ Before do - if ENV['GLUE_RESTART'] + if ENV['REGLUE'] VegetableGlue.shutdown - ENV.delete('GLUE_RESTART') + ENV.delete('REGLUE') end VegetableGlue.clean end -