aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-08-17 13:56:59 +0100
committerPratik Naik <pratiknaik@gmail.com>2009-08-17 14:54:34 +0100
commit25e5b0c4a8d0045715a6ad11e2898585826e4e9b (patch)
treedad28e05c5b6fee48b32e025b880d5b3144d076f /activerecord/test/cases
parentff1b0d3c86c2b26470a30a5edb958a365f00098e (diff)
downloadrails-25e5b0c4a8d0045715a6ad11e2898585826e4e9b.tar.gz
rails-25e5b0c4a8d0045715a6ad11e2898585826e4e9b.tar.bz2
rails-25e5b0c4a8d0045715a6ad11e2898585826e4e9b.zip
Remove support for SQLite 2.
If you're still using it, please install the plugin from git://github.com/rails/sqlite2_adapter.git
Diffstat (limited to 'activerecord/test/cases')
-rwxr-xr-xactiverecord/test/cases/base_test.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 88738d90b1..8421a8fb07 100755
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -1775,17 +1775,15 @@ class BasicsTest < ActiveRecord::TestCase
assert_equal res4, res5
- unless current_adapter?(:SQLite2Adapter, :DeprecatedSQLiteAdapter)
- res6 = Post.count_by_sql "SELECT COUNT(DISTINCT p.id) FROM posts p, comments co WHERE p.#{QUOTED_TYPE} = 'Post' AND p.id=co.post_id"
- res7 = nil
- assert_nothing_raised do
- res7 = Post.count(:conditions => "p.#{QUOTED_TYPE} = 'Post' AND p.id=co.post_id",
- :joins => "p, comments co",
- :select => "p.id",
- :distinct => true)
- end
- assert_equal res6, res7
+ res6 = Post.count_by_sql "SELECT COUNT(DISTINCT p.id) FROM posts p, comments co WHERE p.#{QUOTED_TYPE} = 'Post' AND p.id=co.post_id"
+ res7 = nil
+ assert_nothing_raised do
+ res7 = Post.count(:conditions => "p.#{QUOTED_TYPE} = 'Post' AND p.id=co.post_id",
+ :joins => "p, comments co",
+ :select => "p.id",
+ :distinct => true)
end
+ assert_equal res6, res7
end
def test_clear_association_cache_stored