Skip to content

Commit

Permalink
kill warnings on 1.8.7 [#4331 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
tenderlove authored and josevalim committed Apr 10, 2010
1 parent b22d091 commit 922e4c5
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -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

Expand Down

0 comments on commit 922e4c5

Please sign in to comment.