mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Silence warnings; use more precise assertions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
23c2768421
commit
0fc8056975
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ class ArrayToXmlTests < Test::Unit::TestCase
|
|||
{ :name => "Jason", :age => 31, :age_in_millis => BigDecimal.new('1.0') }
|
||||
].to_xml(:skip_instruct => false, :indent => 0)
|
||||
|
||||
assert(/^<\?xml [^>]*/.match(xml))
|
||||
assert xml.rindex(/<\?xml /) == 0
|
||||
assert_match(/^<\?xml [^>]*/, xml)
|
||||
assert_equal 0, xml.rindex(/<\?xml /)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue