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 -