Skip to content
Browse files

kill warnings on 1.8.7 [#4331 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent b22d091 commit 922e4c57a4a8efe5b045cf800692c487cbacb93c @tenderlove tenderlove committed with josevalim Apr 5, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/test/cases/associations/belongs_to_associations_test.rb
View
8 activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -35,11 +35,11 @@ def test_belongs_to_with_primary_key
def test_belongs_to_with_primary_key_joins_on_correct_column
sql = Client.joins(:firm_with_primary_key).to_sql
if current_adapter?(:MysqlAdapter)
- assert_no_match /`firm_with_primary_keys_companies`\.`id`/, sql
- assert_match /`firm_with_primary_keys_companies`\.`name`/, sql
+ assert_no_match(/`firm_with_primary_keys_companies`\.`id`/, sql)
+ assert_match(/`firm_with_primary_keys_companies`\.`name`/, sql)
else
- assert_no_match /"firm_with_primary_keys_companies"\."id"/, sql
- assert_match /"firm_with_primary_keys_companies"\."name"/, sql
+ assert_no_match(/"firm_with_primary_keys_companies"\."id"/, sql)
+ assert_match(/"firm_with_primary_keys_companies"\."name"/, sql)
end
end

0 comments on commit 922e4c5

Please sign in to comment.
Something went wrong with that request. Please try again.