From 41f60e24a90606455eeaa030d7ab2d1e1e637dd6 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 21 Aug 2013 21:39:38 -0700 Subject: switch to using identities db --- test/test_helper.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/test_helper.rb') 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) -- cgit v1.2.3