Navigation Menu

Skip to content

Commit

Permalink
Follow changes of actual implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 26, 2014
1 parent 924b48d commit ab6541c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/test/stub_handler_messenger.rb
Expand Up @@ -17,12 +17,12 @@ module Droonga
module Test
class StubHandlerMessenger
attr_reader :values, :messages
attr_accessor :dispatcher
attr_accessor :engine_state

def initialize
@values = []
@messages = []
@dispatcher = nil
@engine_state = nil
end

def emit(value)
Expand Down
5 changes: 2 additions & 3 deletions test/unit/plugins/system/test_status.rb
Expand Up @@ -28,8 +28,7 @@ def teardown
def setup_handler
@worker = StubWorker.new
@messenger = Droonga::Test::StubHandlerMessenger.new
@dispatcher = StubDispatcher.new
@messenger.dispatcher = @dispatcher
@messenger.engine_state = StubEngineState.new
@loop = nil
@handler = Droonga::Plugins::System::StatusHandler.new("name",
@worker.context,
Expand All @@ -46,7 +45,7 @@ def process(request)
@handler.handle(message)
end

class StubDispatcher
class StubEngineState
def all_nodes
[
"127.0.0.1:10031/droonga",
Expand Down

0 comments on commit ab6541c

Please sign in to comment.