diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-14 21:35:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-14 21:35:40 +0200 |
| commit | a2edd9ec657dca835ce1a73807a86a9c44fdfec8 (patch) | |
| tree | 678076fbd778b10264ed0b23857c8e5accdcc693 /test | |
| parent | 07e5f8d4402346ccb336cc0680cad98d0d5ba920 (diff) | |
initial tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/lib/dslkeywords/file_test.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lib/dslkeywords/file_test.rb b/test/lib/dslkeywords/file_test.rb new file mode 100644 index 0000000..b4efa33 --- /dev/null +++ b/test/lib/dslkeywords/file_test.rb @@ -0,0 +1,18 @@ +require 'minitest/autorun' +require_relative '../../../lib/dsl' + +class RCMFileTest < Minitest::Test + def test_create_file + text = 'Hello World!' + path = './.foo.txt.tmp' + + configure do + file path do + text + end + end + assert_equal text, File.read(path) + ensure + File.unlink(path) + end +end |
