From 14c40fc275591b5091093e83f3e3672748a62e87 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Sun, 11 Feb 2024 21:51:11 +0100 Subject: [PATCH] chore: add small test to check if adapter support advisory_locks natively (#96) --- test/with_advisory_lock/base_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/with_advisory_lock/base_test.rb diff --git a/test/with_advisory_lock/base_test.rb b/test/with_advisory_lock/base_test.rb new file mode 100644 index 0000000..691dc88 --- /dev/null +++ b/test/with_advisory_lock/base_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class WithAdvisoryLockBaseTest < GemTestCase + test 'should support advisory_locks_enabled' do + skip if is_sqlite3_adapter? + + assert Tag.connection.advisory_locks_enabled? + end +end