From 2c9597094876ba5adac15a2f7e99a6fc5790f967 Mon Sep 17 00:00:00 2001 From: Lakshya Kapoor <4314581+kapoorlakshya@users.noreply.github.com> Date: Mon, 8 Jul 2024 05:01:58 +0000 Subject: [PATCH] Place on desktop --- spec/spec_helper.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 #