diff options
Diffstat (limited to 'test/test_helper.rb')
-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) |