Permalink
Browse files

fix a failure and some warnings on 1.9.2 [#4417 state:resolved]

Signed-off-by: Xavier Noria <fxn@hashref.com>
  • Loading branch information...
1 parent 9c08ccd commit 779723a0b4d9cd42bf6a494c0906723a5e3c5fec @tenderlove tenderlove committed with fxn Apr 16, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 activerecord/test/cases/base_test.rb
  2. +1 −1 activerecord/test/cases/fixtures_test.rb
@@ -2054,7 +2054,7 @@ def test_descends_from_active_record
end
def test_base_subclasses_is_public_method
- assert ActiveRecord::Base.public_methods.include?("subclasses")
+ assert ActiveRecord::Base.public_methods.map(&:to_sym).include?(:subclasses)
end
def test_find_on_abstract_base_class_doesnt_use_type_condition
@@ -26,7 +26,7 @@ class FixturesTest < ActiveRecord::TestCase
FIXTURES = %w( accounts binaries companies customers
developers developers_projects entrants
movies projects subscribers topics tasks )
- MATCH_ATTRIBUTE_NAME = /[a-zA-Z][-_\w]*/
+ MATCH_ATTRIBUTE_NAME = /[a-zA-Z][-\w]*/
def test_clean_fixtures
FIXTURES.each do |name|

0 comments on commit 779723a

Please sign in to comment.