summaryrefslogtreecommitdiff
path: root/test/lib/dslkeywords/duplicate_test.rb
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-18 13:27:37 +0200
committerPaul Buetow <paul@buetow.org>2025-02-18 13:27:37 +0200
commitcd1bdda5f963236dac849eb9257812f81c8af8ba (patch)
tree8c79c53e7be0a42f594a53b0e214c3d9023211d7 /test/lib/dslkeywords/duplicate_test.rb
parent967fec48f96e35ec0ea204e68c8aca35a386cbf7 (diff)
test for dup resource
Diffstat (limited to 'test/lib/dslkeywords/duplicate_test.rb')
-rw-r--r--test/lib/dslkeywords/duplicate_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/lib/dslkeywords/duplicate_test.rb b/test/lib/dslkeywords/duplicate_test.rb
new file mode 100644
index 0000000..e3662f3
--- /dev/null
+++ b/test/lib/dslkeywords/duplicate_test.rb
@@ -0,0 +1,14 @@
+require 'minitest/autorun'
+require 'fileutils'
+require_relative '../../../lib/dsl'
+
+class RCMDuplicateTest < Minitest::Test
+ def test_duplicate_definitioin
+ assert_raises(RCM::DSL::DuplicateResource) do
+ configure_from_scratch do
+ notify :foo
+ notify :foo
+ end
+ end
+ end
+end