File: spec_helper.rb

package info (click to toggle)
ruby-dbf 3.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,728 kB
  • ctags: 150
  • sloc: ruby: 1,653; makefile: 8
file content (34 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
begin
  require 'codeclimate-test-reporter'
  CodeClimate::TestReporter.start
rescue LoadError
end

Encoding.default_external = "UTF-8"

require 'dbf'
require 'yaml'
require 'rspec'
require 'fileutils'

RSpec.configure do |config|
  config.disable_monkey_patching!
  config.warnings = true
  config.order = :random

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end
end

def fixture_path
  @fixture_path ||= File.join(File.dirname(__FILE__), '/fixtures')
end

def fixture(filename)
  File.join(fixture_path, filename)
end