diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-05-17 12:41:47 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-05-17 12:41:47 -0600 |
| commit | 2687b3d38f075320f453caf32414bce2d886b6f8 (patch) | |
| tree | 15b98716419003b6c3ceb7158524377b377f20f5 /spec | |
| parent | 2c6f8f231c6b4933e41278f561137e2021cbafee (diff) | |
use keyword argument for relative option on fixture_file helper [no ci]
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3af09436..11c1a675 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -372,8 +372,8 @@ RSpec.configure do |config| File.join __dir__, 'fixtures' end - def fixture_file path, opts = {} - if opts[:relative] + def fixture_file path, relative: false + if relative (((Pathname.new fixtures_dir) / path).relative_path_from Pathname.new Dir.pwd).to_s else File.join fixtures_dir, path |
