aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2011-10-05 17:21:43 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2011-10-05 19:10:18 -0700
commit999b7ed94d7d7f993cded7376fc4014128d43294 (patch)
tree17637164deea7a52c62df95a859eb931490f359f /activerecord/test/cases/adapters
parent2e9e647fee59d975c9564d96c924d29ffe57f2a2 (diff)
downloadrails-999b7ed94d7d7f993cded7376fc4014128d43294.tar.gz
rails-999b7ed94d7d7f993cded7376fc4014128d43294.tar.bz2
rails-999b7ed94d7d7f993cded7376fc4014128d43294.zip
Transactional fixtures enlist all active database connections.
You can use multiple databases in your tests without disabling transactional fixtures.
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r--activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
index 2b598220ee..eb6f071dc1 100644
--- a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
+++ b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
@@ -5,6 +5,8 @@ require 'models/owner'
module ActiveRecord
module ConnectionAdapters
class SQLite3AdapterTest < ActiveRecord::TestCase
+ self.use_transactional_fixtures = false
+
class DualEncoding < ActiveRecord::Base
end
@@ -155,6 +157,8 @@ module ActiveRecord
binary = DualEncoding.new :name => 'いただきます!', :data => str
binary.save!
assert_equal str, binary.data
+
+ DualEncoding.connection.drop_table('dual_encodings')
end
def test_execute