Sha256: 854da0b2fa2e5b7d8d81252fa930c3323873dd40a35dcdf4d97c2b576f3392b1
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
require 'rubygems' require 'test/spec' require 'fileutils' unless defined? STELLA_HOME STELLA_HOME = File.expand_path(File.join(File.dirname(__FILE__), '..')) $:.unshift(File.join(STELLA_HOME, 'lib')) # Make sure our local lib is first in line end # Stolen from http://github.com/wycats/thor 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 begin require 'json' rescue LoadError ::HAS_JSON = false else ::HAS_JSON = true end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
solutious-stella-0.5.5 | tests/spec-helper.rb |
stella-0.5.5 | tests/spec-helper.rb |