aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/scoping
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2017-03-31 14:00:45 +0900
committerKoichi ITO <koic.ito@gmail.com>2017-03-31 15:41:42 +0900
commitbd7a30297b0ec54fb2514970ee0fa15c044959bf (patch)
tree6b9a4a950cdbbf5e64d86ed9c41a34d93e96ff64 /activerecord/test/cases/scoping
parent7ccb15728be9ae230ca536d6edc190850a91c17f (diff)
downloadrails-bd7a30297b0ec54fb2514970ee0fa15c044959bf.tar.gz
rails-bd7a30297b0ec54fb2514970ee0fa15c044959bf.tar.bz2
rails-bd7a30297b0ec54fb2514970ee0fa15c044959bf.zip
Fix a failed AR test when running with OracleAdapter
Diffstat (limited to 'activerecord/test/cases/scoping')
-rw-r--r--activerecord/test/cases/scoping/default_scoping_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/scoping/default_scoping_test.rb b/activerecord/test/cases/scoping/default_scoping_test.rb
index a6c22ac672..89fb434b27 100644
--- a/activerecord/test/cases/scoping/default_scoping_test.rb
+++ b/activerecord/test/cases/scoping/default_scoping_test.rb
@@ -462,6 +462,8 @@ class DefaultScopingTest < ActiveRecord::TestCase
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