File: spec_helper.rb

package info (click to toggle)
ruby-berkshelf-api-client 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 176 kB
  • ctags: 31
  • sloc: ruby: 255; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
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