From 682ba6e3071e873cc85c6ca5dba4acf751774879 Mon Sep 17 00:00:00 2001 From: shinokaro Date: Mon, 6 May 2024 18:12:37 +0900 Subject: [PATCH] test_temp_with_space --- test/test_ocra.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/test_ocra.rb b/test/test_ocra.rb index 1a85f85f..2c5ebba5 100644 --- a/test/test_ocra.rb +++ b/test/test_ocra.rb @@ -634,19 +634,19 @@ def test_hierarchy end end - # def test_temp_with_space - # with_fixture 'helloworld' do - # assert system("ruby", ocran, "helloworld.rb", *DefaultArgs) - # tempdir = File.expand_path("temporary directory") - # mkdir_p tempdir - # pristine_env "helloworld.exe" do - # with_env "TMP" => tempdir.tr('/','\\') do - # assert system("helloworld.exe") - # end - # end - # end - # end - # + def test_temp_with_space + with_fixture 'helloworld' do + assert system("ruby", ocran, "helloworld.rb", *DefaultArgs) + tempdir = File.expand_path("temporary directory") + mkdir_p tempdir + pristine_env "helloworld.exe" do + with_env "TMP" => tempdir.tr('/','\\') do + assert system("helloworld.exe") + end + end + end + end + # Should be able to build executable when specifying absolute path # to the script from somewhere else. def test_abspath