tsquery 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tsquery.rb +1 -0
- data/test/tsquery_test.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a44eb8513c07306d20725e299faf9731bef0b695
|
|
4
|
+
data.tar.gz: f86c1c27939bc2493ae4fc2ed576a6a258cf9b5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73bd00aa3162df0a6a57dc2f69529a71efdb49e2cf561d0fbc3f03b28d1d3df23d4de44916fc47e7d5751cf39e330af3ea59559f5665d180a9cf8877f5d9f422
|
|
7
|
+
data.tar.gz: 6b7d08d46bbe6a58935489c6a5eed63e73ad9fab7d982d18c4bc27e612fb12c0ce6b603cd64d205ae28e6dceaf331169d9ec6d3bfc6f24055828d756335f8b6d
|
data/lib/tsquery.rb
CHANGED
data/test/tsquery_test.rb
CHANGED
|
@@ -125,6 +125,15 @@ class TsqueryTest < Minitest::Test
|
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
|
|
128
|
+
def test_execute_command_which_returns_an_empty_list
|
|
129
|
+
@telnet.expect :cmd, <<-RESPONSE.gsub(/^\s*/, ''), ['String' => 'privilegekeylist', 'Timeout' => 3, 'Match' => /error id=\d+/]
|
|
130
|
+
error id=1281 msg=database\sempty\sresult\sset
|
|
131
|
+
RESPONSE
|
|
132
|
+
|
|
133
|
+
assert_nil @tsquery.privilegekeylist
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
|
|
128
137
|
def test_login
|
|
129
138
|
@telnet.expect :cmd, 'error id=0 msg=ok', ['String' => 'login serveradmin password', 'Timeout' => 3, 'Match' => /^error id=\d+/]
|
|
130
139
|
|