diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-11 21:54:12 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-11 22:07:37 -0300 |
commit | e6ea3fec305db2872827aedd95a77d343079b8f5 (patch) | |
tree | 70c102c91d56279128865ecdba3bfc931f95c956 | |
parent | 65d584c35b97c57079cb788e375685dd5e2e787c (diff) | |
download | rails-e6ea3fec305db2872827aedd95a77d343079b8f5.tar.gz rails-e6ea3fec305db2872827aedd95a77d343079b8f5.tar.bz2 rails-e6ea3fec305db2872827aedd95a77d343079b8f5.zip |
Remove warnings and unused code
-rw-r--r-- | activerecord/test/cases/connection_pool_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/cases/query_cache_test.rb | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/activerecord/test/cases/connection_pool_test.rb b/activerecord/test/cases/connection_pool_test.rb index aa1f5e6bad..8287b35aaf 100644 --- a/activerecord/test/cases/connection_pool_test.rb +++ b/activerecord/test/cases/connection_pool_test.rb @@ -225,7 +225,7 @@ module ActiveRecord threads = expected.map do |i| t = Thread.new { begin - conn = @pool.checkout # never checked back in + @pool.checkout # never checked back in mutex.synchronize { order << i } rescue => e mutex.synchronize { errors << e } @@ -262,7 +262,7 @@ module ActiveRecord make_thread = proc do |i| t = Thread.new { begin - conn = @pool.checkout # never checked back in + @pool.checkout # never checked back in mutex.synchronize { successes << i } rescue => e mutex.synchronize { errors << e } diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb index f36e879305..08f655d7fa 100644 --- a/activerecord/test/cases/query_cache_test.rb +++ b/activerecord/test/cases/query_cache_test.rb @@ -151,11 +151,6 @@ class QueryCacheTest < ActiveRecord::TestCase end def test_cache_does_not_wrap_string_results_in_arrays - if current_adapter?(:SQLite3Adapter) - require 'sqlite3/version' - sqlite3_version = RUBY_PLATFORM =~ /java/ ? Jdbc::SQLite3::VERSION : SQLite3::VERSION - end - Task.cache do # Oracle adapter returns count() as Fixnum or Float if current_adapter?(:OracleAdapter) |