Update vendored Sqlite3-ruby to 1.3.0
Also, some tweaks to Maruku.
This commit is contained in:
parent
9a80cacc34
commit
4f8759cdf3
55 changed files with 3071 additions and 8028 deletions
25
vendor/plugins/sqlite3-ruby/test/test_deprecated.rb
vendored
Normal file
25
vendor/plugins/sqlite3-ruby/test/test_deprecated.rb
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
require 'helper'
|
||||
|
||||
module SQLite3
|
||||
class TestDeprecated < Test::Unit::TestCase
|
||||
def setup
|
||||
@db = SQLite3::Database.new(':memory:')
|
||||
end
|
||||
|
||||
def test_query_with_many_bind_params
|
||||
assert_equal [[nil, 1]], @db.query("select ?, ?", nil, 1).to_a
|
||||
end
|
||||
|
||||
def test_query_with_nil_bind_params
|
||||
assert_equal [['foo']], @db.query("select 'foo'", nil).to_a
|
||||
end
|
||||
|
||||
def test_execute_with_many_bind_params
|
||||
assert_equal [[nil, 1]], @db.execute("select ?, ?", nil, 1)
|
||||
end
|
||||
|
||||
def test_execute_with_nil_bind_params
|
||||
assert_equal [['foo']], @db.execute("select 'foo'", nil)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue