From c8d1e9445695a73382c0315aa8bc24cce87c176e Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 23 Oct 2023 18:44:14 +0400 Subject: [PATCH] Test workdir change --- test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test.rb b/test.rb index 12e7301..1cbae33 100755 --- a/test.rb +++ b/test.rb @@ -62,7 +62,9 @@ REFS = { }.freeze, }.freeze -@stdin, @stdout, @wait_thr = Open3.popen2 EXE, chdir: __dir__ +workdir = File.expand_path('test', __dir__).freeze + +@stdin, @stdout, @wait_thr = Open3.popen2 EXE, workdir, chdir: __dir__ @stdin.sync = true @stdout.sync = true @@ -94,7 +96,7 @@ end cmd :REGISTER_SCRIPT, { name: :render, vars: %i[template format notes note], - args: ['test/render.rb', + args: ['./render.rb', { template: nil }, { format: nil }], stdin: ['{',