Path: blob/master/spec/acceptance_spec_helper.rb
19516 views
# spec_helper for running Meterpreter acceptance tests1require 'allure_config'2require 'spec_helper'3require 'test_prof/recipes/rspec/let_it_be'45acceptance_support_glob = File.expand_path(File.join(File.dirname(__FILE__), 'support', 'acceptance', '**', '*.rb'))6shared_contexts_glob = File.expand_path(File.join(File.dirname(__FILE__), 'support', 'shared', 'contexts', '**', '*.rb'))7Dir[acceptance_support_glob, shared_contexts_glob].each do |f|8require f9end1011class MetasploitTransactionAdapter12# before_all adapters must implement two methods:13# - begin_transaction14# - rollback_transaction15def begin_transaction16# noop17end1819def rollback_transaction20# noop21end22end2324RSpec.configure do |config|25TestProf::BeforeAll.adapter = MetasploitTransactionAdapter.new26end272829