We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7acadcb commit 551fe2aCopy full SHA for 551fe2a
1 file changed
test/test_database.rb
@@ -45,6 +45,17 @@ def test_filename_with_attachment
45
tf.unlink if tf
46
end
47
48
+
49
+ def test_filename_to_path
50
+ assert_equal '', @db.filename
51
+ pn = Pathname(Tempfile.new('thing').path)
52
+ @db = SQLite3::Database.new pn
53
+ assert_equal pn.expand_path.to_s, File.expand_path(@db.filename)
54
+ ensure
55
+ pn.unlink if pn.exist?
56
+ end
57
58
59
def test_error_code
60
begin
61
db.execute 'SELECT'
0 commit comments