Sha256: e66e567be7a33ea24ebcd321951c04998fd6f62d15601ad428d0c80fd8901c9d
Contents?: true
Size: 612 Bytes
Versions: 5
Compression:
Stored size: 612 Bytes
Contents
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'fakefs/safe' require 'test/unit' begin require 'redgreen' rescue LoadError end def act_on_real_fs raise ArgumentError unless block_given? FakeFS.deactivate! yield FakeFS.activate! end def capture_stderr real_stderr, $stderr = $stderr, StringIO.new # force FileUtils to use our stderr RealFileUtils.instance_variable_set('@fileutils_output', $stderr) yield return $stderr.string ensure $stderr = real_stderr # restore FileUtils stderr RealFileUtils.instance_variable_set('@fileutils_output', $stderr) end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fakefs-0.5.4 | test/test_helper.rb |
fakefs-0.5.3 | test/test_helper.rb |
fakefs-0.5.2 | test/test_helper.rb |
fakefs-0.5.1 | test/test_helper.rb |
fakefs-0.5.0 | test/test_helper.rb |