diff options
Diffstat (limited to 'test/rexml/test_attribute.rb')
-rw-r--r-- | test/rexml/test_attribute.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/rexml/test_attribute.rb b/test/rexml/test_attribute.rb new file mode 100644 index 0000000000..5175bd4454 --- /dev/null +++ b/test/rexml/test_attribute.rb @@ -0,0 +1,14 @@ +require_relative "rexml_test_utils" + +module REXMLTests + class AttributeTest < Test::Unit::TestCase + def test_empty_prefix + error = assert_raise(ArgumentError) do + REXML::Attribute.new(":x") + end + assert_equal("name must be " + + "\#{PREFIX}:\#{LOCAL_NAME} or \#{LOCAL_NAME}: <\":x\">", + error.message) + end + end +end |