silence docker calls in test env
MODIFY
test/test_helper.rb
test/test_helper.rb
@@ -29,7 +29,7 @@ I18n.enforce_available_locales = false
Beetle.config.logger = Logger.new(File.dirname(__FILE__) + '/../test.log')
Beetle.config.servers = ENV["RABBITMQ_SERVERS"] || "localhost:5672"
-if system('docker') && `docker inspect beetle-redis-master -f '{{.State.Status}}'`.chomp == "running"
+if system('docker -v >/dev/null') && `docker inspect beetle-redis-master -f '{{.State.Status}}'`.chomp == "running"
Beetle.config.redis_server = ENV["REDIS_SERVER"] || "localhost:6370"
Beetle.config.redis_servers = ENV["REDIS_SERVERS"] || "localhost:6370,localhost:6380"
else
@@ -52,6 +52,6 @@ def redis_stub(name, opts = {})
stub(name, opts)
end
-if system('docker') && `docker inspect beetle-mysql -f '{{.State.Status}}'`.chomp == "running"
+if system('docker -v >/dev/null') && `docker inspect beetle-mysql -f '{{.State.Status}}'`.chomp == "running"
ENV['MYSQL_PORT'] = '6612'
end

silence docker calls in test env