Skip to content

Commit

Permalink
test: skip URI tests for sqlcipher
Browse files Browse the repository at this point in the history
since the compile-time option may not be on
  • Loading branch information
flavorjones committed Oct 30, 2024
1 parent fe026b2 commit 7e750ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_database_uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module SQLite3
class TestDatabaseURI < SQLite3::TestCase
def test_open_absolute_file_uri
skip("windows uri paths are hard") if windows?
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?

Tempfile.open "test.db" do |file|
db = SQLite3::Database.new("file:#{file.path}")
Expand All @@ -16,6 +17,7 @@ def test_open_absolute_file_uri

def test_open_relative_file_uri
skip("windows uri paths are hard") if windows?
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?

Dir.mktmpdir do |dir|
Dir.chdir dir do
Expand All @@ -29,6 +31,7 @@ def test_open_relative_file_uri

def test_open_file_uri_readonly
skip("windows uri paths are hard") if windows?
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?

Tempfile.open "test.db" do |file|
db = SQLite3::Database.new("file:#{file.path}?mode=ro")
Expand Down

0 comments on commit 7e750ac

Please sign in to comment.