# (c) 2017 Ribose Inc. # # Warnings gem must be added to Gemfile or otherwise loaded in order to have # the following configuration in effect. # # TODO: Add Warning to gemspec or Gemfile after dropping support for Ruby 2.3. begin require "warning" # Deduplicate warnings Warning.dedup # Ignore all warnings in Gem dependencies Gem.path.each do |path| Warning.ignore(//, path) end rescue LoadError end require "simplecov" SimpleCov.start if ENV.key?("CI") require "codecov" SimpleCov.formatter = SimpleCov::Formatter::Codecov end require "bundler" Bundler.require :default, :development Dir[File.expand_path "support/**/*.rb", __dir__].sort.each { |f| require f } 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