From 5f1710b187ccb9791f24023e334541788a2e83cd Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Tue, 25 Sep 2012 23:30:15 +0900 Subject: Skip tests for non-supported isolation levels with Oracle --- activerecord/test/cases/transaction_isolation_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/test/cases') 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 -- cgit v1.2.3