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

Version Path
rroonga-5.0.0-x64-mingw32 test/test-plugin.rb
rroonga-5.0.0-x86-mingw32 test/test-plugin.rb
rroonga-5.0.0 test/test-plugin.rb
rroonga-4.0.8-x64-mingw32 test/test-plugin.rb
rroonga-4.0.8-x86-mingw32 test/test-plugin.rb
rroonga-4.0.8 test/test-plugin.rb
rroonga-4.0.7-x64-mingw32 test/test-plugin.rb
rroonga-4.0.7-x86-mingw32 test/test-plugin.rb
rroonga-4.0.7 test/test-plugin.rb
rroonga-4.0.6-x64-mingw32 test/test-plugin.rb
rroonga-4.0.6-x86-mingw32 test/test-plugin.rb
rroonga-4.0.6 test/test-plugin.rb
rroonga-4.0.5-x64-mingw32 test/test-plugin.rb
rroonga-4.0.5-x86-mingw32 test/test-plugin.rb
rroonga-4.0.5 test/test-plugin.rb