aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2012-09-25 23:30:15 +0900
committerYasuo Honda <yasuo.honda@gmail.com>2012-09-25 23:42:54 +0900
commit5f1710b187ccb9791f24023e334541788a2e83cd (patch)
tree40ee269f1f60d9c688e5a1a60dbc3e972fc5db0a /activerecord/test/cases
parenta05a079c109ebbafd8112be0044c9d82b4a28d97 (diff)
downloadrails-5f1710b187ccb9791f24023e334541788a2e83cd.tar.gz
rails-5f1710b187ccb9791f24023e334541788a2e83cd.tar.bz2
rails-5f1710b187ccb9791f24023e334541788a2e83cd.zip
Skip tests for non-supported isolation levels with Oracle
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/transaction_isolation_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/transaction_isolation_test.rb b/activerecord/test/cases/transaction_isolation_test.rb
index 1e34f93d8f..c7f36b53b1 100644
--- a/activerecord/test/cases/transaction_isolation_test.rb
+++ b/activerecord/test/cases/transaction_isolation_test.rb
@@ -44,6 +44,7 @@ class TransactionIsolationTest < ActiveRecord::TestCase
# specifies what must not happen at a certain level, not what must happen. At
# the read uncommitted level, there is nothing that must not happen.
test "read uncommitted" do
+ return skip "Oracle does not support read uncommitted" if current_adapter? :OracleAdapter
Tag.transaction(isolation: :read_uncommitted) do
assert_equal 0, Tag.count
Tag2.create
@@ -67,6 +68,7 @@ class TransactionIsolationTest < ActiveRecord::TestCase
# We are testing that a nonrepeatable read does not happen
test "repeatable read" do
+ return skip "Oracle does not support repeatble read" if current_adapter? :OracleAdapter
tag = Tag.create(name: 'jon')
Tag.transaction(isolation: :repeatable_read) do