lib/infrataster/rspec.rb in infrataster-0.1.7 vs lib/infrataster/rspec.rb in infrataster-0.1.8
- old
+ new
@@ -11,7 +11,13 @@
@infrataster_context.before_each(example) if @infrataster_context.respond_to?(:before_each)
end
config.after(:each) do
@infrataster_context.after_each(example) if @infrataster_context.respond_to?(:after_each)
end
+
+ config.after(:all) do
+ Infrataster::Server.defined_servers.each do |server|
+ server.shutdown_gateway
+ end
+ end
end