1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
require 'rspec'
require 'berkshelf/api/rspec'
require 'berkshelf/api-client'
Dir[File.join(File.expand_path("../../spec/support/**/*.rb", __FILE__))].each { |f| require f }
RSpec.configure do |config|
config.include Berkshelf::API::RSpec
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::API::RSpec::Server.start }
config.before(:all) { Berkshelf::API::Logging.init(location: '/dev/null') }
end
|