mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix a stale typo in the PostgreSQL adapter. Fix a stale mock expection in transaction_test.
This commit is contained in:
@@ -537,7 +537,7 @@ module ActiveRecord
|
||||
execute("ROLLBACK TO SAVEPOINT #{current_savepoint_name}")
|
||||
end
|
||||
|
||||
def release_savepoint(savepoint_number)
|
||||
def release_savepoint
|
||||
execute("RELEASE SAVEPOINT #{current_savepoint_name}")
|
||||
end
|
||||
|
||||
|
||||
@@ -309,7 +309,6 @@ class TransactionTest < ActiveRecord::TestCase
|
||||
uses_mocha 'mocking connection.commit_db_transaction' do
|
||||
def test_rollback_when_commit_raises
|
||||
Topic.connection.expects(:begin_db_transaction)
|
||||
Topic.connection.expects(:transaction_active?).returns(true) if current_adapter?(:PostgreSQLAdapter)
|
||||
Topic.connection.expects(:commit_db_transaction).raises('OH NOES')
|
||||
Topic.connection.expects(:rollback_db_transaction)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user