We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b11872e commit bd43a5dCopy full SHA for bd43a5d
test/transaction_test.rb
@@ -69,5 +69,13 @@ def pg_lock_count
69
end
70
assert_equal(0, pg_lock_count)
71
72
+
73
+ specify 'transaction level locks fail if not in transaction' do
74
+ Tag.with_advisory_lock 'test', transaction: true do
75
+ raise 'should not get here'
76
+ end
77
78
+ assert_match(/#{Regexp.escape('requires transaction')}/, exception.message)
79
80
81
0 commit comments