Properly tear down the AWS VM at the end of each scenario
This commit is contained in:
parent
0de91d693a
commit
8eeed7226d
|
@ -5,3 +5,5 @@ for operations.
|
|||
|
||||
See [this post](http://unethicalblogger.com/2012/06/10/outside-in-to-ops.html)
|
||||
for more details.
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue