From 2687b3d38f075320f453caf32414bce2d886b6f8 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 17 May 2022 12:41:47 -0600 Subject: use keyword argument for relative option on fixture_file helper [no ci] --- spec/spec_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3