Sha256: d5e8da3dda3339b6dca7d58e9dc8a51c388b151a67d65ca4610f537e49da353f
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
require 'chefspec' require 'chefspec/berkshelf' at_exit { ChefSpec::Coverage.report! } class RSpecHelper class<<self attr_accessor :current_example attr_accessor :api_version end def self.reset! @current_example = nil @api_version = '1.18' 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chef-12.8.1 | acceptance/top-cookbooks/test_run/docker/spec/spec_helper.rb |
chef-12.8.1-universal-mingw32 | acceptance/top-cookbooks/test_run/docker/spec/spec_helper.rb |