-
Notifications
You must be signed in to change notification settings - Fork 9
/
spec_helper.rb
41 lines (29 loc) · 909 Bytes
/
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
# frozen_string_literal: true
require "bundler/setup"
require 'coveralls'
Coveralls.wear!
require "ayashige"
require "vcr"
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!
config.expect_with :rspec do |c|
c.syntax = :expect
end
end
require_relative "./support/helpers/io_helper"
RSpec.configure do |config|
config.include Spec::Support::IOHelper
end
require_relative "./support/shared_contexts/job_context"
RSpec.configure do |rspec|
rspec.include_context "job context", include_shared: true
end
VCR.configure do |config|
config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
config.configure_rspec_metadata!
config.hook_into :webmock
config.ignore_localhost = true
end