diff options
author | elijah <elijah@riseup.net> | 2013-08-21 21:39:38 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-08-21 21:39:38 -0700 |
commit | 41f60e24a90606455eeaa030d7ab2d1e1e637dd6 (patch) | |
tree | 481d40faf34d221e7e5c10253a727267b6fe750d /test | |
parent | be90709b114b6f1cd84b70b58b989a3f46712da4 (diff) |
switch to using identities db
Diffstat (limited to 'test')
-rw-r--r-- | test/test_helper.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 5d95cfd..ec19753 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -46,8 +46,6 @@ class MiniTest::Unit::TestCase def stub_couch_response(uid, opts = {}) # can't stub localhost, so set couch_host to anything else Nickserver::Config.stub :couch_host, 'notlocalhost' do - uid = uid.split('@').first # TEMPORARY HACK FOR NOW. in the future - # the database should be able to be searchable by full address options = {:status => 200, :body => ""}.merge(opts) query = "\?key=#{"%22#{uid}%22"}&reduce=false" stub_http_request(:get, /#{Regexp.escape(Nickserver::Couch::FetchKey.couch_url)}.*#{query}/).to_return(options) |