summaryrefslogtreecommitdiff
path: root/test/unit/couch_stream_test.rb
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-01-06 10:05:47 +0100
committerAzul <azul@riseup.net>2014-02-04 11:46:57 +0100
commit88083a47eb042fd5b3f6cfd9cae1e087bc9fa072 (patch)
tree37e597a60c174ebb82ccf2470e04440a9ef855d5 /test/unit/couch_stream_test.rb
parent53b2a1f1f750a48939e69278297d69dbc6b213ad (diff)
add dummy integration test
Diffstat (limited to 'test/unit/couch_stream_test.rb')
-rw-r--r--test/unit/couch_stream_test.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/unit/couch_stream_test.rb b/test/unit/couch_stream_test.rb
deleted file mode 100644
index a9de21f..0000000
--- a/test/unit/couch_stream_test.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-require File.expand_path('../../test_helper.rb', __FILE__)
-require 'tapicero/couch_stream'
-
-class CouchStreamTest < MiniTest::Unit::TestCase
-
- def setup
- @root = "http://server/database"
- @stream = Tapicero::CouchStream.new(@root)
- @url = @root + "/_changes?a=b&c=d"
- @path = "_changes"
- @options = {:a => :b, :c => :d}
- end
-
- def test_get
- Tapicero::JsonStream.expects(:get).
- with(@url, :symbolize_keys => true).
- yields(stub_hash = stub)
- @stream.get(@path, @options) do |hash|
- assert_equal stub_hash, hash
- end
- end
-
- # internal
- def test_url_creation
- assert_equal "http://server/database/", @stream.send(:url_for, "")
- assert_equal @url, @stream.send(:url_for, @path, @options)
- end
-
-end