File: spec_helper.rb

package info (click to toggle)
ruby-mixlib-shellout 3.2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 404 kB
  • sloc: ruby: 2,854; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 749 bytes parent folder | download
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
require "mixlib/shellout"

require "tmpdir"
require "tempfile"
require "timeout"

# Load everything from spec/support
Dir["spec/support/**/*.rb"].each { |f| require File.expand_path(f) }

RSpec.configure do |config|
  config.mock_with :rspec
  config.filter_run focus: true
  config.filter_run_excluding external: true

  # Add jruby filters here
  config.filter_run_excluding windows_only: true unless windows?
  config.filter_run_excluding unix_only: true unless unix?
  config.filter_run_excluding requires_root: true unless root?
  config.filter_run_excluding ruby: DependencyProc.with(RUBY_VERSION)

  config.run_all_when_everything_filtered = true

  config.warnings = true

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end