aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-12-16 23:45:44 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-12-16 23:45:44 +0000
commit0fc805697564b4b730b37ea9d1400dcbaad8e323 (patch)
tree04393481a91f8a52714175178058ab1db0bdbf25 /activesupport
parent23c2768421a6be1671ca8e18ce09b6d7c25cf603 (diff)
downloadrails-0fc805697564b4b730b37ea9d1400dcbaad8e323.tar.gz
rails-0fc805697564b4b730b37ea9d1400dcbaad8e323.tar.bz2
rails-0fc805697564b4b730b37ea9d1400dcbaad8e323.zip
Silence warnings; use more precise assertions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/array_ext_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb
index 87608de8d5..5a273b83d6 100644
--- a/activesupport/test/core_ext/array_ext_test.rb
+++ b/activesupport/test/core_ext/array_ext_test.rb
@@ -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