spec/support/fixtures/services/echo.rb in cuboid-0.0.5 vs spec/support/fixtures/services/echo.rb in cuboid-0.1.0
- old
+ new
@@ -1,17 +1,17 @@
-class Cuboid::RPC::Server::Dispatcher
+class Cuboid::RPC::Server::Agent
class Service::Echo < Service
private :instances
public :instances
- def test_dispatcher
- dispatcher.class == Cuboid::RPC::Server::Dispatcher
+ def test_agent
+ agent.class == Cuboid::RPC::Server::Agent
end
def test_opts
- dispatcher.instance_eval{ @options } == options
+ agent.instance_eval{ @options } == options
end
def test_node
node.class == Node
end
@@ -36,11 +36,11 @@
def test_iterator_for
iterator_for( instances ).class == Arachni::Reactor::Iterator
end
- def test_connect_to_dispatcher( url, &block )
- connect_to_dispatcher( url ).alive? { |b| block.call b }
+ def test_connect_to_agent( url, &block )
+ connect_to_agent( url ).alive? { |b| block.call b }
end
def test_connect_to_instance( *args, &block )
connect_to_instance( *args ).busy?{ |b| block.call !!b }
end