Skip to content

Commit

Permalink
Merge pull request rails#7756 from yahonda/isolation_level_oracle
Browse files Browse the repository at this point in the history
Skip tests for non-supported isolation levels with Oracle
  • Loading branch information
rafaelfranca committed Sep 25, 2012
2 parents 9fec0c8 + 5f1710b commit 01cef4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions activerecord/test/cases/transaction_isolation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 01cef4f

Please sign in to comment.