shorten env
This commit is contained in:
parent
b63e2f2276
commit
371b3e803f
|
@ -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`.
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue