mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-07 12:12:24 +02:00
22 lines
385 B
Ruby
22 lines
385 B
Ruby
|
require 'chefspec'
|
||
|
require 'chefspec/berkshelf'
|
||
|
|
||
|
class RSpecHelper
|
||
|
class<<self
|
||
|
attr_accessor :current_example
|
||
|
end
|
||
|
def self.reset!
|
||
|
@current_example = nil
|
||
|
end
|
||
|
end
|
||
|
|
||
|
RSpec.configure do |config|
|
||
|
config.filter_run focus: true
|
||
|
config.run_all_when_everything_filtered = true
|
||
|
|
||
|
config.before :each do
|
||
|
RSpecHelper.reset!
|
||
|
RSpecHelper.current_example = self
|
||
|
end
|
||
|
end
|