-
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathspec_helper.rb
More file actions
31 lines (25 loc) · 792 Bytes
/
Copy pathspec_helper.rb
File metadata and controls
31 lines (25 loc) · 792 Bytes
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
# frozen_string_literal: true
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..'))
require 'rubygems'
require 'rspec'
require 'ostruct'
require 'timecop'
require 'simplecov'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
c.single_report_path = 'coverage/lcov.info'
end
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start
require 'slack_ruby_client'
Dir[File.join(File.dirname(__FILE__), 'support', '**/*.rb')].each do |file|
require file
end
Slack.configure do |config|
config.token = ENV['SLACK_API_TOKEN'] || '<SLACK_API_TOKEN>'
end
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
end