summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-15 10:22:50 +0200
committerPaul Buetow <paul@buetow.org>2025-02-15 10:22:50 +0200
commit8729aafe5bca25d0f7e94bd3c7ee1e0f60f99035 (patch)
tree2a88726109ad3482f79937d0b87f6fc05be43c6c /test/lib
parent6879b03b2735b082b913ab17e63857f464f53c93 (diff)
add depends_on syntax
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/dslkeywords/dependency_test.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lib/dslkeywords/dependency_test.rb b/test/lib/dslkeywords/dependency_test.rb
new file mode 100644
index 0000000..ccbaec6
--- /dev/null
+++ b/test/lib/dslkeywords/dependency_test.rb
@@ -0,0 +1,17 @@
+require 'minitest/autorun'
+require 'fileutils'
+
+require_relative '../../../lib/dsl'
+
+class RCMDependencyTest < Minitest::Test
+ def test_dependency
+ configure_from_scratch do
+ notify 'foo' do
+ depends_on notify['bar'], file['baz']
+ :HELLO
+ end
+
+ notify 'bar'
+ end
+ end
+end