summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-09-11 13:02:27 +0200
committerAzul <azul@riseup.net>2012-09-11 13:02:27 +0200
commitc0fc5ac5b5d955b1789a58153952e43bb7052b07 (patch)
treefd9b3e98cd9c75c09b33c4ee8e8af3996309abb4 /test
parentc331d70638c35d807128e39a9958cab5ba4eeb25 (diff)
configuring couchDB the CouchRest way and using that for tracking
Diffstat (limited to 'test')
-rw-r--r--test/unit/config.yml2
-rw-r--r--test/unit/config_test.rb14
-rw-r--r--test/unit/couch_stream_test.rb6
3 files changed, 3 insertions, 19 deletions
diff --git a/test/unit/config.yml b/test/unit/config.yml
deleted file mode 100644
index 725e5af..0000000
--- a/test/unit/config.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-database: test-db
-server: test-server
diff --git a/test/unit/config_test.rb b/test/unit/config_test.rb
deleted file mode 100644
index 545bedd..0000000
--- a/test/unit/config_test.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-require 'test_helper'
-require 'lib/config'
-
-class ConfigTest < MiniTest::Unit::TestCase
-
- def setup
- @config = LeapCA::Config.new(File.expand_path("../config.yml", __FILE__))
- end
-
- def test_initial_content
- assert_equal 'test-server', @config.server
- assert_equal 'test-db', @config.database
- end
-end
diff --git a/test/unit/couch_stream_test.rb b/test/unit/couch_stream_test.rb
index 438049b..af5a34e 100644
--- a/test/unit/couch_stream_test.rb
+++ b/test/unit/couch_stream_test.rb
@@ -10,9 +10,9 @@ end
class CouchStreamTest < MiniTest::Unit::TestCase
def setup
- @config = stub(:server => "http://server", :database => "database")
- @stream = CouchStream.new(@config)
- @url = "http://server/database/_changes?c=d&a=b"
+ @root = "http://server/database"
+ @stream = CouchStream.new(@root)
+ @url = @root + "/_changes?a=b&c=d"
@path = "_changes"
@options = {:a => :b, :c => :d}
end