Permalink
Browse files

Merge pull request #28621 from koic/fix_failed_test_when_running_with…

…_oracle

Fix a failed AR test when running with OracleAdapter
  • Loading branch information...
eileencodes committed Mar 31, 2017
2 parents 85d4b2a + bd7a302 commit fb084e2980969e587c94602a921bc604ef916442
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/scoping/default_scoping_test.rb
@@ -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

0 comments on commit fb084e2

Please sign in to comment.