Sha256: a5cd17218e6004d2ceb069802f0edc34261e890683be8a9a4fe3c05306b6a788
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
# This file provides a require-able entry point for putting at the top of your # tests, or in a shared helper. require 'rspec-system' require 'yaml' require 'pp' require 'tempfile' include RSpecSystem::Helpers RSpec.configure do |c| include RSpecSystem::Log include RSpecSystem::InternalHelpers c.include RSpecSystem::Helpers c.include RSpecSystem::InternalHelpers c.extend RSpecSystem::Helpers # This provides a path to save vagrant files c.add_setting :system_tmp # Storage for ssh channels c.add_setting :ssh_channels, :default => {} c.add_setting :rspec_storage, :default => {} # Default the system_tmp dir to something random c.system_tmp = rspec_system_tmp c.before :suite do # Before Suite exceptions get captured it seems begin start_nodes rescue => ex puts ex.inspect + " in" puts ex.backtrace.join("\n ") exit(1) end end c.after :suite do puts "=================================================================" # After Suite exceptions get captured it seems begin stop_nodes rescue => ex puts ex.inspect + " in" puts ex.backtrace.join("\n ") end end end
Version data entries
6 entries across 6 versions & 1 rubygems