Skip to content

Commit

Permalink
test: skip strict mode test for sqlite < 3.29.0
Browse files Browse the repository at this point in the history
Related to #317 / 40fb6cc
  • Loading branch information
flavorjones committed Jun 14, 2022
1 parent 818da58 commit 661e969
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,10 @@ def test_execute_with_named_bind_params
end

def test_strict_mode
unless Gem::Requirement.new(">= 3.29.0").satisfied_by?(Gem::Version.new(SQLite3::SQLITE_VERSION))
skip("strict mode feature not available in #{SQLite3::SQLITE_VERSION}")
end

db = SQLite3::Database.new(':memory:')
db.execute('create table numbers (val int);')
db.execute('create index index_numbers_nope ON numbers ("nope");') # nothing raised
Expand Down

0 comments on commit 661e969

Please sign in to comment.