aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-25 10:05:50 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-25 10:05:50 -0700
commit01cef4f3fc04978f283bd87446dab59a2b531e35 (patch)
treed4fe7ac020a988f989f86a075c887e8162dbc2b1
parent9fec0c8d3522c6b027dbe2df70c49953b2d9bbaa (diff)
parent5f1710b187ccb9791f24023e334541788a2e83cd (diff)
downloadrails-01cef4f3fc04978f283bd87446dab59a2b531e35.tar.gz
rails-01cef4f3fc04978f283bd87446dab59a2b531e35.tar.bz2
rails-01cef4f3fc04978f283bd87446dab59a2b531e35.zip
Merge pull request #7756 from yahonda/isolation_level_oracle
Skip tests for non-supported isolation levels with Oracle
-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