Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #75 from kenhys/use-default-plugin
Browse files Browse the repository at this point in the history
Use default plugin for testing Rroonga
  • Loading branch information
kou committed Apr 2, 2015
2 parents 6f52262 + 4f6dc40 commit 935b7ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test-plugin.rb
Expand Up @@ -22,16 +22,16 @@ class PluginTest < Test::Unit::TestCase

def test_register
context = Groonga::Context.default
assert_nil(context["suggest"])
context.register_plugin("suggest/suggest")
assert_not_nil(context["suggest"])
assert_nil(context["TokenFilterStopWord"])
context.register_plugin("token_filters/stop_word")
assert_not_nil(context["TokenFilterStopWord"])
end

def test_system_plugins_dir
suggest_plugin_path = "#{Groonga::Plugin.system_plugins_dir}/"
suggest_plugin_path << "suggest/suggest#{Groonga::Plugin.suffix}"
plugin_path = "#{Groonga::Plugin.system_plugins_dir}/"
plugin_path << "token_filters/stop_word#{Groonga::Plugin.suffix}"
assert do
File.exist?(suggest_plugin_path)
File.exist?(plugin_path)
end
end
end

0 comments on commit 935b7ee

Please sign in to comment.