Skip to content

Commit

Permalink
Double slash for win paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlakshya committed Jul 20, 2024
1 parent f8ffa5f commit 3c5a43f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,21 @@ def test_input
#
def test_output
file = "recording-#{Time.now.to_i}.mkv"
File.join(Dir.pwd, file)
path = File.join(Dir.pwd, file)
return path.tr('/', '\\') if OS.windows?

path
end

#
# Returns test log filename.
#
def test_log_file
file = 'ffmpeg.log'
File.join(Dir.pwd, file)
path = File.join(Dir.pwd, file)
return path.tr('/', '\\') if OS.windows?

path
end

#
Expand Down

0 comments on commit 3c5a43f

Please sign in to comment.