diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-18 19:02:29 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-18 19:02:29 +0200 |
| commit | 21c96e516044cf59a3b89c3b40c7efb279b0767c (patch) | |
| tree | 30ccc58ee47ff0b5798ca55f4ea021cbd0e21401 /test | |
| parent | de93bdd4a9897a4dbe1e54a8e13944cce62b7ac9 (diff) | |
refactor file DSL
Diffstat (limited to 'test')
| -rw-r--r-- | test/lib/dslkeywords/file_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lib/dslkeywords/file_test.rb b/test/lib/dslkeywords/file_test.rb index 4c38dc9..f414cf1 100644 --- a/test/lib/dslkeywords/file_test.rb +++ b/test/lib/dslkeywords/file_test.rb @@ -28,13 +28,13 @@ class RCMFileTest < Minitest::Test configure_from_scratch do file :create_file do path FILE_PATH - is :present + is present :text end file :delete_file do path FILE_PATH - is :absent + is absent end end @@ -71,7 +71,7 @@ class RCMFileTest < Minitest::Test configure_from_scratch do file FILE_PATH do - from_sourcefile + from sourcefile source_path end end @@ -83,7 +83,7 @@ class RCMFileTest < Minitest::Test def test_create_file_from_template configure_from_scratch do file FILE_PATH do - from_template + from template 'One plus two is <%= 1 + 2 %>!' end end @@ -101,7 +101,7 @@ class RCMFileTest < Minitest::Test configure_from_scratch do file(FILE_PATH) do line 'Whats up?' - is :absent + is absent end end assert_equal 'Hey there', File.read(FILE_PATH) @@ -110,7 +110,7 @@ class RCMFileTest < Minitest::Test configure_from_scratch do file(FILE_PATH) do line 'Hey there' - is :absent + is absent end end assert_equal 'Whats up?', File.read(FILE_PATH) |
