Permalink
Browse files

Silence warnings; use more precise assertions.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 23c2768 commit 0fc805697564b4b730b37ea9d1400dcbaad8e323 @jeremy jeremy committed Dec 16, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/array_ext_test.rb
@@ -176,7 +176,7 @@ def test_to_with_instruct
{ :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

0 comments on commit 0fc8056

Please sign in to comment.