summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/spec_helper.rb4
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