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
1 parent 3cb7a9c commit f8dfd4a962e48b9e81911526ec816ad7721322bb
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 f8dfd4a

Please sign in to comment.