Sha256: c23788a4867106d2432cc94739ea897e6490ea9ef31c725f5ad4daa3a922f1ee
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true require "test_helper" require "tempfile" module Pups class FileCommandTest < ::Minitest::Test def test_simple_file_creation tmp = Tempfile.new("test") tmp.write("x") tmp.close cmd = FileCommand.new cmd.path = tmp.path cmd.contents = "hello $world" cmd.params = { "world" => "world" } cmd.run assert_equal("hello world", File.read(tmp.path)) ensure tmp.close tmp.unlink end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pups-1.2.1 | test/file_command_test.rb |
pups-1.2.0 | test/file_command_test.rb |