aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/attribute_methods_test.rb
diff options
context:
space:
mode:
authorRay Zane <raymondzane@gmail.com>2014-11-22 22:02:15 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-05 13:34:59 -0300
commitac41f6a5d7f49c420cc7b6bd8ab03d2b0ba2b3bb (patch)
tree606fa77170f2d1e9264dcfadc0e01b4c3eed4d24 /activerecord/test/cases/attribute_methods_test.rb
parentd972537faa3bfb609e3343cfbf09aa660943878f (diff)
downloadrails-ac41f6a5d7f49c420cc7b6bd8ab03d2b0ba2b3bb.tar.gz
rails-ac41f6a5d7f49c420cc7b6bd8ab03d2b0ba2b3bb.tar.bz2
rails-ac41f6a5d7f49c420cc7b6bd8ab03d2b0ba2b3bb.zip
Add firebird support to test suite
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index feb1fca500..01ee1234a2 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -502,7 +502,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase
def test_typecast_attribute_from_select_to_false
Topic.create(:title => 'Budget')
# Oracle does not support boolean expressions in SELECT
- if current_adapter?(:OracleAdapter)
+ if current_adapter?(:OracleAdapter, :FbAdapter)
topic = Topic.all.merge!(:select => "topics.*, 0 as is_test").first
else
topic = Topic.all.merge!(:select => "topics.*, 1=2 as is_test").first
@@ -513,7 +513,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase
def test_typecast_attribute_from_select_to_true
Topic.create(:title => 'Budget')
# Oracle does not support boolean expressions in SELECT
- if current_adapter?(:OracleAdapter)
+ if current_adapter?(:OracleAdapter, :FbAdapter)
topic = Topic.all.merge!(:select => "topics.*, 1 as is_test").first
else
topic = Topic.all.merge!(:select => "topics.*, 2=2 as is_test").first