Sha256: 1d458ee2353551423e831554a0796e89944fcbd8f80b6ef2e04abe2189952146
Contents?: true
Size: 780 Bytes
Versions: 4
Compression:
Stored size: 780 Bytes
Contents
require 'bundler/setup' Bundler.require require 'fakefs/spec_helpers' require 'webmock/rspec' require 'pathname' require 'stringio' require 'fileutils' RSpec.configure do |config| 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 def silence_stdout(&block) capture(:stdout, &block) end def tmp_dir @tmp_dir ||= begin Pathname('/fakefs/ec2ssh').tap do |path| FileUtils.mkdir_p path end end end alias :silence :capture end require 'vcr' VCR.configure do |config| config.cassette_library_dir = "fixtures/vcr_cassettes" config.hook_into :webmock end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ec2ssh-5.1.0 | spec/spec_helper.rb |
ec2ssh-5.0.0 | spec/spec_helper.rb |
ec2ssh-4.0.0 | spec/spec_helper.rb |
ec2ssh-3.1.1 | spec/spec_helper.rb |