Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a stale typo in the PostgreSQL adapter. Fix a stale mock expectio…
…n in transaction_test.
  • Loading branch information
FooBarWidget committed Nov 3, 2008
1 parent e383835 commit e981eaa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -537,7 +537,7 @@ def rollback_to_savepoint
execute("ROLLBACK TO SAVEPOINT #{current_savepoint_name}") execute("ROLLBACK TO SAVEPOINT #{current_savepoint_name}")
end end


def release_savepoint(savepoint_number) def release_savepoint
execute("RELEASE SAVEPOINT #{current_savepoint_name}") execute("RELEASE SAVEPOINT #{current_savepoint_name}")
end end


Expand Down
1 change: 0 additions & 1 deletion activerecord/test/cases/transactions_test.rb
Expand Up @@ -309,7 +309,6 @@ def test_many_savepoints
uses_mocha 'mocking connection.commit_db_transaction' do uses_mocha 'mocking connection.commit_db_transaction' do
def test_rollback_when_commit_raises def test_rollback_when_commit_raises
Topic.connection.expects(:begin_db_transaction) 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(:commit_db_transaction).raises('OH NOES')
Topic.connection.expects(:rollback_db_transaction) Topic.connection.expects(:rollback_db_transaction)


Expand Down

0 comments on commit e981eaa

Please sign in to comment.