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

Version Path
ey-pro-cli-0.0.17 spec/spec_helper.rb
ey-pro-cli-0.0.16 spec/spec_helper.rb
ey-pro-cli-0.0.15 spec/spec_helper.rb
ey-pro-cli-0.0.14 spec/spec_helper.rb
ey-pro-cli-0.0.13 spec/spec_helper.rb
ey-pro-cli-0.0.12 spec/spec_helper.rb
ey-pro-cli-0.0.11 spec/spec_helper.rb
ey-pro-cli-0.0.10 spec/spec_helper.rb
ey-pro-cli-0.0.9 spec/spec_helper.rb
ey-pro-cli-0.0.8 spec/spec_helper.rb
ey-pro-cli-0.0.7 spec/spec_helper.rb
ey-pro-cli-0.0.6 spec/spec_helper.rb
ey-pro-cli-0.0.5 spec/spec_helper.rb
ey-pro-cli-0.0.4 spec/spec_helper.rb