Kouhei Sutou
null+****@clear*****
Thu Dec 26 15:14:31 JST 2013
Kouhei Sutou 2013-12-26 15:14:31 +0900 (Thu, 26 Dec 2013) New Revision: 11a89812ae6c558c7cdfe9300c93260e1e3b7e7d https://github.com/droonga/fluent-plugin-droonga/commit/11a89812ae6c558c7cdfe9300c93260e1e3b7e7d Message: Remove not maintained test Removed files: test/unit/test_adapter.rb Deleted: test/unit/test_adapter.rb (+0 -51) 100644 =================================================================== --- test/unit/test_adapter.rb 2013-12-26 15:12:16 +0900 (4f93455) +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright (C) 2013 Droonga Project -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License version 2.1 as published by the Free Software Foundation. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -require "droonga/adapter" - -class AdapterTest < Test::Unit::TestCase - class AdaptTest < self - # class GroongaAdapter < Droonga::Adapter - # command :select - # def select(request) - # post(:search) do |response| - # # do nothing - # end - # :selected - # end - # end - - def setup - omit("Pending") - @dispatcher = Object.new - @groonga_adapter = GroongaAdapter.new(@dispatcher) - end - - def test_called - omit("Pending") - request = nil - stub(@dispatcher).post - assert_equal(:selected, @groonga_adapter.adapt(:select, request)) - end - - def test_post - omit("Pending") - request = nil - response = nil - mock(@dispatcher).post(:search).yields(response) - @groonga_adapter.adapt(:select, request) - end - end -end -------------- next part -------------- HTML����������������������������... 下载