File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments