cosmo0920
null+****@clear*****
Wed Sep 24 21:16:04 JST 2014
cosmo0920 2014-09-24 21:16:04 +0900 (Wed, 24 Sep 2014) New Revision: d046012d63c1d083606a7e60781146c419fe6e6b https://github.com/ranguba/rroonga/commit/d046012d63c1d083606a7e60781146c419fe6e6b Message: test plugin: use Power Assert This test code becomes more natural rubyish code. Let's start using Power Assert! Modified files: test/test-plugin.rb Modified: test/test-plugin.rb (+3 -1) =================================================================== --- test/test-plugin.rb 2014-09-23 03:19:32 +0900 (47aad0e) +++ test/test-plugin.rb 2014-09-24 21:16:04 +0900 (18c5b4f) @@ -30,6 +30,8 @@ class PluginTest < Test::Unit::TestCase def test_system_plugins_dir suggest_plugin_path = "#{Groonga::Plugin.system_plugins_dir}/" suggest_plugin_path << "suggest/suggest#{Groonga::Plugin.suffix}" - assert_send([File, :exist?, suggest_plugin_path]) + assert do + File.exist?(suggest_plugin_path) + end end end -------------- next part -------------- HTML����������������������������...Download