mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rexml/test_xml_declaration.rb (TestXmlDeclaration#test_*):
Remove needless prefix from test names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9a2dc8f9da
commit
bd2024165c
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Nov 3 12:06:15 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* test/rexml/test_xml_declaration.rb (TestXmlDeclaration#test_*):
|
||||
Remove needless prefix from test names.
|
||||
|
||||
Sat Nov 3 12:04:52 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* test/rexml/test_xml_declaration_parent_child.rb: Rename to ...
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env ruby
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Created by Henrik Mårtensson on 2007-02-18.
|
||||
# Copyright (c) 2007. All rights reserved.
|
||||
|
@ -18,15 +19,15 @@ class TestXmlDeclaration < Test::Unit::TestCase
|
|||
@xml_declaration = @doc.children[0]
|
||||
end
|
||||
|
||||
def test_xml_declaration_is_first_child
|
||||
def test_is_first_child
|
||||
assert_kind_of(REXML::XMLDecl, @xml_declaration)
|
||||
end
|
||||
|
||||
def test_xml_declaration_has_document_as_parent
|
||||
def test_has_document_as_parent
|
||||
assert_kind_of(REXML::Document, @xml_declaration.parent)
|
||||
end
|
||||
|
||||
def test_xml_declaration_has_sibling
|
||||
def test_has_sibling
|
||||
assert_kind_of(REXML::XMLDecl, @root.previous_sibling.previous_sibling)
|
||||
assert_kind_of(REXML::Element, @xml_declaration.next_sibling.next_sibling)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue