Properly tear down the AWS VM at the end of each scenario

This commit is contained in:
R. Tyler Croy 2012-06-18 23:24:09 -07:00
parent 0de91d693a
commit 8eeed7226d
2 changed files with 5 additions and 3 deletions

View File

@ -5,3 +5,5 @@ for operations.
See [this post](http://unethicalblogger.com/2012/06/10/outside-in-to-ops.html)
for more details.

View File

@ -26,12 +26,12 @@ Before do
end
After do |scenario|
fleet = Blimpy::Fleet.new
fleet.destroy
# After each scenario, regardless of whether it failed or not we should
# change back to the original directory we started in
unless @original_dir.nil?
Dir.chdir(@original_dir)
end
fleet = Blimpy::Fleet.new
fleet.destroy
end