提交 fb084e29 编写于 作者: E Eileen M. Uchitelle 提交者: GitHub

Merge pull request #28621 from koic/fix_failed_test_when_running_with_oracle

Fix a failed AR test when running with OracleAdapter
......@@ -462,6 +462,8 @@ def test_sti_conditions_are_not_carried_in_default_scope
def test_with_abstract_class_scope_should_be_executed_in_correct_context
vegetarian_pattern, gender_pattern = if current_adapter?(:Mysql2Adapter)
[/`lions`.`is_vegetarian`/, /`lions`.`gender`/]
elsif current_adapter?(:OracleAdapter)
[/"LIONS"."IS_VEGETARIAN"/, /"LIONS"."GENDER"/]
else
[/"lions"."is_vegetarian"/, /"lions"."gender"/]
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册