Browse files

Skip tests for non-supported isolation levels with Oracle

  • Loading branch information...
1 parent a05a079 commit 5f1710b187ccb9791f24023e334541788a2e83cd @yahonda yahonda committed Sep 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/transaction_isolation_test.rb
View
2 activerecord/test/cases/transaction_isolation_test.rb
@@ -44,6 +44,7 @@ class Tag2 < ActiveRecord::Base
# 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 Tag2 < ActiveRecord::Base
# 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

0 comments on commit 5f1710b

Please sign in to comment.