shorten env

This commit is contained in:
John Bintz 2012-02-03 10:20:53 -05:00
parent b63e2f2276
commit 371b3e803f
2 changed files with 3 additions and 4 deletions

View File

@ -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`: 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`. If you're using ActiveResource, a good source of the URL is `ActiveResource::Base.site`.

View File

@ -1,11 +1,10 @@
Before do Before do
if ENV['GLUE_RESTART'] if ENV['REGLUE']
VegetableGlue.shutdown VegetableGlue.shutdown
ENV.delete('GLUE_RESTART') ENV.delete('REGLUE')
end end
VegetableGlue.clean VegetableGlue.clean
end end