summaryrefslogtreecommitdiff
path: root/test/unit/couch_db/source_unit_test.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2016-07-12 10:39:58 +0200
committerGitHub <noreply@github.com>2016-07-12 10:39:58 +0200
commitd7599715c6d24534dcccbe29cfc058e534039053 (patch)
tree14824b08c4d0889e9767171ac5bafe3316a607f9 /test/unit/couch_db/source_unit_test.rb
parent27196b87e8d0ce5325381ea96ccd68ced8ee2e4d (diff)
parent6732fef4df156a02ed83f006f19f66cf567b5340 (diff)
Merge pull request #5 from azul/celluloid
Use Celluloid, Reel and Celluloid I/O based http requests
Diffstat (limited to 'test/unit/couch_db/source_unit_test.rb')
-rw-r--r--test/unit/couch_db/source_unit_test.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unit/couch_db/source_unit_test.rb b/test/unit/couch_db/source_unit_test.rb
index 19ea9bc..fd07808 100644
--- a/test/unit/couch_db/source_unit_test.rb
+++ b/test/unit/couch_db/source_unit_test.rb
@@ -7,10 +7,9 @@ module Nickserver::CouchDB
def test_query
address = "nick@domain.tl"
adapter = Minitest::Mock.new
- adapter.expect :get, nil,
+ adapter.expect :get, [200, nil],
[String, {query: { reduce: "false", key: "\"#{address}\"" }}]
- query = Source.new(adapter)
- query.query address
+ Source.new(adapter).query address
adapter.verify
end
end