Sha256: 2d1ba22b9d9c55ae80ad9ecabde3fc48cd55b06a999ca0b2c2603ecf39b458f0
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
class NetSystem::SqliteClientTest < NetSystem::ClientTest def subject @subject ||= subject_class.new ":memory:" end test :subject_class do assert subject_class == NetSystem::SqliteClient end test :subject do assert subject.conn.class == SQLite3::Database end test :call do result = subject.call "SELECT name, sql FROM sqlite_master WHERE type = 'table';" assert result == [["name", "sql"]] end test :now do result = subject.now assert result.class == Array assert result[0] == ["strftime('%Y-%m-%dT%H:%M:%S.%f', 'now', 'localtime')"] assert result[1][0].class == String end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lizarb-1.0.4 | lib/net_system/net/controllers/client/sqlite_client_test.rb |
lizarb-1.0.3 | lib/net_system/net/controllers/client/sqlite_client_test.rb |