Skip to content

Commit 70f474e

Browse files
author
Anna
committed
removed tests because they're now tested by core
1 parent 41ea3b7 commit 70f474e

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

test/cases/transaction_test_sqlserver.rb

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,6 @@ class TransactionTestSqlserver < ActiveRecord::TestCase
3434

3535
end
3636

37-
context 'Testing #outside_transaction?' do
38-
39-
40-
41-
should 'not call rollback if no transaction is active' do
42-
assert_raise RuntimeError do
43-
Ship.transaction do
44-
Ship.connection.rollback_db_transaction
45-
Ship.connection.expects(:rollback_db_transaction).never
46-
raise "Rails doesn't scale!"
47-
end
48-
end
49-
end
50-
51-
should 'test_open_transactions_count_is_reset_to_zero_if_no_transaction_active' do
52-
Ship.transaction do
53-
Ship.transaction do
54-
Ship.connection.rollback_db_transaction
55-
end
56-
assert_equal 0, Ship.connection.open_transactions
57-
end
58-
assert_equal 0, Ship.connection.open_transactions
59-
end
60-
61-
end
62-
63-
64-
6537
protected
6638

6739
def delete_ships

0 commit comments

Comments
 (0)