Sha256: e3d408a3d2ce5d5ca2dc9e73b4fc149fbd591ac9f48ede72f7c1e49cad0c4d19
Contents?: true
Size: 664 Bytes
Versions: 7
Compression:
Stored size: 664 Bytes
Contents
require "rspec" require 'stringio' require File.expand_path('../../lib/baleen.rb', __FILE__) RSpec.configure do |config| unless Docker.url = ENV["docker_url"] hl_error "You have to set 'docker_url' environment variable before running test Ex: export docker_url=\"http://192.168.56.4:4243\"" exit 1 end end def base_image ENV["test_base"] ||= "baleen/test_base" end def test_image "baleen/#{example.description.gsub("\s", "-")}" end def capture(stream) begin stream = stream.to_s eval "$#{stream} = StringIO.new" yield result = eval("$#{stream}").string ensure eval "$#{stream} = #{stream.upcase}" end result end
Version data entries
7 entries across 7 versions & 1 rubygems