From cd1bdda5f963236dac849eb9257812f81c8af8ba Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 18 Feb 2025 13:27:37 +0200 Subject: test for dup resource --- test/lib/dslkeywords/duplicate_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/lib/dslkeywords/duplicate_test.rb (limited to 'test') 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 -- cgit v1.2.3