diff options
Diffstat (limited to 'test/unit/couch_stream_test.rb')
-rw-r--r-- | test/unit/couch_stream_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/couch_stream_test.rb b/test/unit/couch_stream_test.rb index 5826ad3..438049b 100644 --- a/test/unit/couch_stream_test.rb +++ b/test/unit/couch_stream_test.rb @@ -10,7 +10,8 @@ end class CouchStreamTest < MiniTest::Unit::TestCase def setup - @stream = CouchStream.new("http://server/", "database") + @config = stub(:server => "http://server", :database => "database") + @stream = CouchStream.new(@config) @url = "http://server/database/_changes?c=d&a=b" @path = "_changes" @options = {:a => :b, :c => :d} @@ -30,5 +31,5 @@ class CouchStreamTest < MiniTest::Unit::TestCase assert_equal "http://server/database/", @stream.send(:url_for, "") assert_equal @url, @stream.send(:url_for, @path, @options) end - + end |