- Notifications
You must be signed in to change notification settings - Fork 375
/
Copy pathspec_helper.rb
28 lines (22 loc) · 706 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
# frozen_string_literal: true
require'rspec'
require'simplecov'
require'jwt'
require_relative'spec_support/test_keys'
require_relative'spec_support/token'
puts"OpenSSL::VERSION: #{OpenSSL::VERSION}"
puts"OpenSSL::OPENSSL_VERSION: #{OpenSSL::OPENSSL_VERSION}"
puts"OpenSSL::OPENSSL_LIBRARY_VERSION: #{OpenSSL::OPENSSL_LIBRARY_VERSION}\n\n"
RSpec.configuredo |config|
config.expect_with:rspecdo |c|
c.syntax=:expect
end
config.include(SpecSupport::TestKeys)
config.before(:example)do
JWT.configuration.reset!
JWT.configuration.deprecation_warnings=:warn
end
config.run_all_when_everything_filtered=true
config.filter_run:focus
config.order='random'
end