From 7958827a0ba1126646e01314e7c6bb4f86292dc8 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 10 Sep 2013 18:57:52 +0200 Subject: use our own JsonStream and a created callback in CouchChanges --- test/unit/couch_stream_test.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test') 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| -- cgit v1.2.3