aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/locking_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-16 12:05:45 -0600
committerSean Griffin <sean@thoughtbot.com>2014-05-17 13:24:25 -0600
commit8df8334327b3afe2c66458ed7877d2aacfabd515 (patch)
treec403bfeb36e3b5efd929a760d4b2761c661f7d64 /activerecord/test/cases/locking_test.rb
parent067131524b5b5cb6100aca8bf5b48a3006a93acd (diff)
downloadrails-8df8334327b3afe2c66458ed7877d2aacfabd515.tar.gz
rails-8df8334327b3afe2c66458ed7877d2aacfabd515.tar.bz2
rails-8df8334327b3afe2c66458ed7877d2aacfabd515.zip
Remove dead test code for unsupported adapters
Diffstat (limited to 'activerecord/test/cases/locking_test.rb')
-rw-r--r--activerecord/test/cases/locking_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb
index c373dc1511..93fd3b9605 100644
--- a/activerecord/test/cases/locking_test.rb
+++ b/activerecord/test/cases/locking_test.rb
@@ -339,8 +339,6 @@ class OptimisticLockingWithSchemaChangeTest < ActiveRecord::TestCase
def add_counter_column_to(model, col='test_count')
model.connection.add_column model.table_name, col, :integer, :null => false, :default => 0
model.reset_column_information
- # OpenBase does not set a value to existing rows when adding a not null default column
- model.update_all(col => 0) if current_adapter?(:OpenBaseAdapter)
end
def remove_counter_column_from(model, col = :test_count)
@@ -367,7 +365,7 @@ end
# is so cumbersome. Will deadlock Ruby threads if the underlying db.execute
# blocks, so separate script called by Kernel#system is needed.
# (See exec vs. async_exec in the PostgreSQL adapter.)
-unless current_adapter?(:SybaseAdapter, :OpenBaseAdapter) || in_memory_db?
+unless in_memory_db?
class PessimisticLockingTest < ActiveRecord::TestCase
self.use_transactional_fixtures = false
fixtures :people, :readers