Skip to content

Commit 661e969

Browse files
committed
test: skip strict mode test for sqlite < 3.29.0
Related to #317 / 40fb6cc
1 parent 818da58 commit 661e969

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/test_database.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ def test_execute_with_named_bind_params
512512
end
513513

514514
def test_strict_mode
515+
unless Gem::Requirement.new(">= 3.29.0").satisfied_by?(Gem::Version.new(SQLite3::SQLITE_VERSION))
516+
skip("strict mode feature not available in #{SQLite3::SQLITE_VERSION}")
517+
end
518+
515519
db = SQLite3::Database.new(':memory:')
516520
db.execute('create table numbers (val int);')
517521
db.execute('create index index_numbers_nope ON numbers ("nope");') # nothing raised

0 commit comments

Comments
 (0)