summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-09-10 18:57:52 +0200
committerAzul <azul@riseup.net>2013-09-10 18:57:52 +0200
commit7958827a0ba1126646e01314e7c6bb4f86292dc8 (patch)
treed4079d37c38e025486212d6b9f1d327fd1a7651e /test
parent57140b80f00aab43918a3ec3276062823971dec7 (diff)
use our own JsonStream and a created callback in CouchChanges
Diffstat (limited to 'test')
-rw-r--r--test/unit/couch_stream_test.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/unit/couch_stream_test.rb b/test/unit/couch_stream_test.rb
index 48b663a..a9de21f 100644
--- a/test/unit/couch_stream_test.rb
+++ b/test/unit/couch_stream_test.rb
@@ -1,12 +1,6 @@
require File.expand_path('../../test_helper.rb', __FILE__)
require 'tapicero/couch_stream'
-# we'll mock this
-module Yajl
- class HttpStream
- end
-end
-
class CouchStreamTest < MiniTest::Unit::TestCase
def setup
@@ -18,7 +12,7 @@ class CouchStreamTest < MiniTest::Unit::TestCase
end
def test_get
- Yajl::HttpStream.expects(:get).
+ Tapicero::JsonStream.expects(:get).
with(@url, :symbolize_keys => true).
yields(stub_hash = stub)
@stream.get(@path, @options) do |hash|