diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-03-31 14:00:45 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-03-31 15:41:42 +0900 |
commit | bd7a30297b0ec54fb2514970ee0fa15c044959bf (patch) | |
tree | 6b9a4a950cdbbf5e64d86ed9c41a34d93e96ff64 /activerecord/test/cases/scoping | |
parent | 7ccb15728be9ae230ca536d6edc190850a91c17f (diff) | |
download | rails-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.rb | 2 |
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 |