Sha256: 9441431d4eb1ad743662f982c2f547333a981d313e50d72339b54e25a47f0f24
Contents?: true
Size: 1.26 KB
Versions: 15
Compression:
Stored size: 1.26 KB
Contents
# Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com> # # 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA class PluginTest < Test::Unit::TestCase include GroongaTestUtils setup :setup_sandbox setup :setup_database teardown :teardown_sandbox def test_register context = Groonga::Context.default assert_nil(context["suggest"]) context.register_plugin("suggest/suggest") assert_not_nil(context["suggest"]) end def test_system_plugins_dir suggest_plugin_path = "#{Groonga::Plugin.system_plugins_dir}/" suggest_plugin_path << "suggest/suggest#{Groonga::Plugin.suffix}" assert do File.exist?(suggest_plugin_path) end end end
Version data entries
15 entries across 15 versions & 1 rubygems