Skip to content

Commit d5811f8

Browse files
committed
Permit aruba to use absolutely paths
1 parent 3399734 commit d5811f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/spec_helper.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
require 'longleaf'
22
require 'factory_bot'
33
require 'simplecov'
4+
require 'aruba/rspec'
45
require_relative 'support/db_helpers'
56
SimpleCov.profiles.define 'no_vendor_coverage' do
67
add_filter '.bundle'
78
end
89

910
SimpleCov.start 'no_vendor_coverage'
1011

12+
# Longleaf tests intentionally work with real absolute paths on the filesystem
13+
# (preservation storage locations, config files, etc.), so allow Aruba to
14+
# accept absolute paths when piping files to commands under test.
15+
Aruba.configure do |config|
16+
config.allow_absolute_paths = true
17+
end
18+
1119
# This file was generated by the `rspec --init` command. Conventionally, all
1220
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
1321
# The generated `.rspec` file contains `--require spec_helper` which will cause

0 commit comments

Comments
 (0)