mirror of
https://github.com/github/rails.git
synced 2026-01-31 01:08:19 -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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user