Sha256: 3f933e66886d632a038a24d3199b9f04b78b506e16c42a5f248f6c0b45fc6f8c
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
# stdlib require 'rubygems' require 'test/unit' # ralbum $RALBUM_HOME = File.expand_path( File.join( File.dirname( __FILE__), "..", ".." ) ) lib_dir = File.join($RALBUM_HOME, "lib" ) test_dir = File.join($RALBUM_HOME, "test" ) $:.unshift lib_dir unless $:.include?(lib_dir) $:.unshift test_dir unless $:.include?( test_dir ) $TEST_DATA = File.join( $RALBUM_HOME, "test_data", "ralbum", "test_data" ) $PHOTOTREE_DIRECTORY = File.join( $RALBUM_HOME, "example", "test_rubyphoto_phototree") $JALBUM_PHOTOTREE_DIRECTORY = File.join( $RALBUM_HOME, "example", "test_jalbum_phototree") require "stringio" def with_stdout_captured old_stdout = $stdout out = StringIO.new $stdout = out begin yield ensure $stdout = old_stdout end out.string end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gf-ralbum-0.0.5 | test/ralbum/test_helper.rb |