diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8d035f9..22b95f1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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 #