Sha256: ab5b361e1b58f37e8dd7b8ae6fe410e60a39bf190f4ad3ccca568d5f12ea8d62
Contents?: true
Size: 686 Bytes
Versions: 14
Compression:
Stored size: 686 Bytes
Contents
require 'pry' require 'tempfile' require 'awesome_print' require 'ffaker' require 'securerandom' ENV["MOCK_CLI"] ||= 'true' 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 require File.expand_path("../../lib/ey_pro_cli", __FILE__) Dir[File.expand_path("../{shared,support}/*.rb", __FILE__)].each{|f| require(f)} if ENV["MOCK_CLI"] Ey::Core::Client.mock! Ey::Core::Client.reset! end RSpec.configure do |config| config.order = "random" config.before(:each) do @tempfile = Tempfile.new(".ey-core") end end
Version data entries
14 entries across 14 versions & 1 rubygems