Sha256: 7e313e9e77fa7320aff1df5064fb77efffb6044c3d319a9f2b7fb65740dc1aa6
Contents?: true
Size: 885 Bytes
Versions: 7
Compression:
Stored size: 885 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "frankly" require "pry-byebug" #### TODO Figure out how to silence the rubygems (Or prevent it from # bundling at all) The solution below only silence the generating # files part # # Borrowed from https://gist.github.com/adamstegman/926858 # # RSpec.configure do |config| # config.before(:all) { silence_output } # config.after(:all) { enable_output } # end # # # Redirects stderr and stdout to /dev/null. # def silence_output # @orig_stderr = $stderr # @orig_stdout = $stdout # # # redirect stderr and stdout to /dev/null # $stderr = File.new('/dev/null', 'w') # $stdout = File.new('/dev/null', 'w') # end # # # Replace stdout and stderr so anything else is output correctly. # def enable_output # $stderr = @orig_stderr # $stdout = @orig_stdout # @orig_stderr = nil # @orig_stdout = nil # end
Version data entries
7 entries across 7 versions & 1 rubygems