Sha256: c852b47b0a26925d82abcd13cf96f411638ec02155336506c6012bca943136cf
Contents?: true
Size: 713 Bytes
Versions: 7
Compression:
Stored size: 713 Bytes
Contents
require 'bundler/setup' Bundler.setup require 'faraday' require 'wss_agent' require 'webmock/rspec' require 'timecop' require 'vcr' require 'support/exit_code_matches' VCR.configure do |config| config.cassette_library_dir = 'spec/fixtures/vcr_cassettes' config.hook_into :webmock config.configure_rspec_metadata! config.allow_http_connections_when_no_cassette = false end RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect 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 end
Version data entries
7 entries across 7 versions & 1 rubygems