Navigation Menu

Skip to content

Commit

Permalink
test: extract a method for check mecab availavility
Browse files Browse the repository at this point in the history
  • Loading branch information
Masafumi Yokoyama committed Apr 2, 2015
1 parent 4a12980 commit 239c98b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions test/groonga-test-utils.rb
Expand Up @@ -189,4 +189,8 @@ def need_self_recursive_equal
def need_encoding
omit("Encoding is needed.") unless defined?(::Encoding)
end

def check_mecab_availability
omit("MeCab isn't available") if context["TokenMecab"].nil?
end
end
5 changes: 1 addition & 4 deletions test/test-table-select-mecab.rb
Expand Up @@ -20,10 +20,7 @@ class TableSelectMecabTest < Test::Unit::TestCase

setup :setup_database

setup
def check_mecab_availability
omit("MeCab isn't available") if context["TokenMecab"].nil?
end
setup :check_mecab_availability

setup
def setup_tables
Expand Down

0 comments on commit 239c98b

Please sign in to comment.