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

- old
+ new

@@ -90,9 +90,14 @@ end private def require_adaptor(type) + if Artoo::Robot.test? + original_type = type + type = :test + end + require "artoo/adaptors/#{type.to_s}" @adaptor = constantize("Artoo::Adaptors::#{classify(type.to_s)}").new(:port => port, :parent => current_instance) end end end