Skip to content

Commit

Permalink
test_temp_with_space
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 6, 2024
1 parent 8b62427 commit 682ba6e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/test_ocra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 682ba6e

Please sign in to comment.