diff options
Diffstat (limited to 'test/rexml/test_instruction.rb')
-rw-r--r-- | test/rexml/test_instruction.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/rexml/test_instruction.rb b/test/rexml/test_instruction.rb new file mode 100644 index 0000000000..96fa909e17 --- /dev/null +++ b/test/rexml/test_instruction.rb @@ -0,0 +1,14 @@ +require_relative "rexml_test_utils" + +module REXMLTests + class InstructionTest < Test::Unit::TestCase + def test_target_nil + error = assert_raise(ArgumentError) do + REXML::Instruction.new(nil) + end + assert_equal("processing instruction target must be String or " + + "REXML::Instruction: <nil>", + error.message) + end + end +end |