aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/calculations_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-09 14:42:39 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-09 14:42:39 -0800
commite0eef111a31e1e442b60015b7c752cc1e2c21c57 (patch)
tree887fe52287d44a5c21b1d3cdcdd80d3c1bf0e680 /activerecord/test/cases/calculations_test.rb
parente0cba3a0fab28f96dc9b5d3a714886583873a7d3 (diff)
downloadrails-e0eef111a31e1e442b60015b7c752cc1e2c21c57.tar.gz
rails-e0eef111a31e1e442b60015b7c752cc1e2c21c57.tar.bz2
rails-e0eef111a31e1e442b60015b7c752cc1e2c21c57.zip
typecast columns based on the returned types
Diffstat (limited to 'activerecord/test/cases/calculations_test.rb')
-rw-r--r--activerecord/test/cases/calculations_test.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb
index e1544b3b00..0391319a00 100644
--- a/activerecord/test/cases/calculations_test.rb
+++ b/activerecord/test/cases/calculations_test.rb
@@ -486,11 +486,6 @@ class CalculationsTest < ActiveRecord::TestCase
def test_pluck_not_auto_table_name_prefix_if_column_joined
Company.create!(:name => "test", :contracts => [Contract.new(:developer_id => 7)])
- # FIXME: PostgreSQL should works in the same way of the other adapters
- if current_adapter?(:PostgreSQLAdapter)
- assert_equal ["7"], Company.joins(:contracts).pluck(:developer_id)
- else
- assert_equal [7], Company.joins(:contracts).pluck(:developer_id)
- end
+ assert_equal [7], Company.joins(:contracts).pluck(:developer_id)
end
end