Sha256: 28eeefacbf2d6172cde49c54462daacb8544dc6033795505f9ffafd6dce57800
Contents?: true
Size: 897 Bytes
Versions: 5
Compression:
Stored size: 897 Bytes
Contents
require 'infrataster' require 'rspec' include Infrataster::Helpers::ResourceHelper RSpec.configure do |config| config.include Infrataster::Helpers::RSpecHelper config.before(:all) do @infrataster_context = Infrataster::Contexts.from_example(self.class) end config.before(:each) do if defined?(RSpec.current_example) example = RSpec.current_example end @infrataster_context = Infrataster::Contexts.from_example(example) @infrataster_context.before_each(example) if @infrataster_context.respond_to?(:before_each) end config.after(:each) do if defined?(RSpec.current_example) example = RSpec.current_example end @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
Version data entries
5 entries across 5 versions & 1 rubygems