Skip to content

Commit

Permalink
Place on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlakshya committed Jul 8, 2024
1 parent 68a3144 commit 2c95970
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 @@ -61,14 +61,20 @@ def test_input
# Returns test output filename.
#
def test_output
"recording-#{Time.now.to_i}.mkv"
file = "recording-#{Time.now.to_i}.mkv"
return "#{Dir.home}/Desktop/#{file}" if OS.windows?

file
end

#
# Returns test log filename.
#
def test_log_file
"screen-recorder-#{Time.now.to_i}.log"
file = "screen-recorder-#{Time.now.to_i}.log"
return "#{Dir.home}/Desktop/#{file}" if OS.windows?

file
end

#
Expand Down

0 comments on commit 2c95970

Please sign in to comment.