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: ['{',