lib/artoo/delegator.rb in artoo-0.5.0 vs lib/artoo/delegator.rb in artoo-1.0.0.pre

- old
+ new

@@ -1,9 +1,9 @@ module Artoo # Execution context for top-level robots # DSL methods executed on main are delegated to this class like Sinatra class MainRobot < Robot - set :start_work, false + set :start_work, Proc.new { ! test? } end # Artoo delegation mixin that acts like Sinatra. # Mixing this module into an object causes all # methods to be delegated to the Artoo::MainRobot class.