Permalink
Browse files

Fix a stale typo in the PostgreSQL adapter. Fix a stale mock expectio…

…n in transaction_test.
  • Loading branch information...
1 parent e383835 commit e981eaaf342d06e399b5138553c964adcfadd87c @FooBarWidget FooBarWidget committed Oct 9, 2008
@@ -537,7 +537,7 @@ def rollback_to_savepoint
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 @@ def test_many_savepoints
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)

0 comments on commit e981eaa

Please sign in to comment.