-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspec_helper.rb
42 lines (31 loc) · 1.18 KB
/
spec_helper.rb
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
35
36
37
38
39
40
41
42
require 'fileutils'
require 'yaml'
require 'tmpdir'
# Required by shoulda-matchers.
require 'active_support/core_ext/object/try'
require 'support/coverage'
ENV['ATLAS_ENV'] = 'test'
require_relative '../lib/atlas'
I18n.config.enforce_available_locales = true
Bundler.require(:test)
require 'support/fixtures'
require 'support/matchers'
require 'support/some_document'
require 'support/graph_helper'
RSpec.configure do |config|
# Use only the new "expect" syntax.
config.expect_with(:rspec) { |c| c.syntax = :expect }
# Tries to find examples / groups with the focus tag, and runs them. If no
# examples are focues, run everything. Prevents the need to specify
# `--tag focus` when you only want to run certain examples.
config.filter_run(focus: true)
config.run_all_when_everything_filtered = true
config.raise_errors_for_deprecations!
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = "random"
# Use a (safe) copy of spec/fixtures as the data-source.
config.include Atlas::Spec::Fixtures
end