[Groonga-commit] ranguba/epub-searcher at ccdb779 [master] Reflect Padrino settings about database to test environment

Back to archive index

KITAITI Makoto null+****@clear*****
Thu Dec 25 01:29:39 JST 2014


KITAITI Makoto	2014-12-25 01:29:39 +0900 (Thu, 25 Dec 2014)

  New Revision: ccdb7794a0b77590c48c963a1edbe389e7d01de0
  https://github.com/ranguba/epub-searcher/commit/ccdb7794a0b77590c48c963a1edbe389e7d01de0

  Message:
    Reflect Padrino settings about database to test environment

  Modified files:
    test/epub-searcher/remote_database_test.rb

  Modified: test/epub-searcher/remote_database_test.rb (+6 -1)
===================================================================
--- test/epub-searcher/remote_database_test.rb    2014-12-25 01:20:41 +0900 (ee419b1)
+++ test/epub-searcher/remote_database_test.rb    2014-12-25 01:29:39 +0900 (4c500e9)
@@ -2,7 +2,12 @@ require 'epub-searcher/remote-database'
 
 class TestRemoteDatabase < Test::Unit::TestCase
   def setup
-    @database = EPUBSearcher::RemoteDatabase.new(:protocol => :http)
+    db_options = {
+      protocol: :http,
+      host: Epub::App.settings.droonga_host,
+      port: Epub::App.settings.droonga_port
+    }
+    @database = EPUBSearcher::RemoteDatabase.new(db_options)
   end
 
   def teardown
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index