Sha256: d4de2e4f636e5e9e615240cfbe263c6bedb1268247ed6e2b7147bb19679304d1
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
require 'rubygems' require 'bundler' require 'rspec' require 'spork' require 'rack/test' Spork.prefork do Dir[File.join(File.expand_path("../../spec/support/**/*.rb", __FILE__))].each { |f| require f } RSpec.configure do |config| config.include Berkshelf::RSpec::ChefServer config.expect_with :rspec do |c| c.syntax = :expect end config.mock_with :rspec config.treat_symbols_as_metadata_keys_with_true_values = true config.filter_run focus: true config.run_all_when_everything_filtered = true config.before(:suite) { Berkshelf::RSpec::ChefServer.start } config.before(:all) { Berkshelf::API::Logging.init(location: '/dev/null') } config.before do Celluloid.shutdown Celluloid.boot Berkshelf::API::CacheManager.cache_file = tmp_path.join('cerch').to_s clean_tmp_path end end def app_root_path Pathname.new(File.expand_path('../../', __FILE__)) end def tmp_path app_root_path.join('spec/tmp') end def fixtures_path app_root_path.join('spec/fixtures') end def clean_tmp_path FileUtils.rm_rf(tmp_path) FileUtils.mkdir_p(tmp_path) end end Spork.each_run do require 'berkshelf/api' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
berkshelf-api-0.1.0 | spec/spec_helper.rb |