Sha256: a66e0e7aacb25c2c6aec57a0c38f03af2b6d45e308e37e5710cb7e16b73907fa
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
require "rubygems" require "bundler" require 'stringio' Bundler.setup(:default, :test) require 'spec' $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "../lib"))) require "jasmine" def create_temp_dir tmp = File.join(Dir.tmpdir, 'jasmine-gem-test') FileUtils.rm_r(tmp, :force => true) FileUtils.mkdir(tmp) tmp end def temp_dir_before @root = File.expand_path(File.join(File.dirname(__FILE__), "..")) @old_dir = Dir::pwd @tmp = create_temp_dir end def temp_dir_after Dir::chdir @old_dir FileUtils.rm_r @tmp end module Kernel def capture_stdout out = StringIO.new $stdout = out yield return out.string ensure $stdout = STDOUT end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
edgecase-jasmine-1.0.1.1 | spec/spec_helper.rb |
jasmine-1.0.1 | spec/spec_helper.rb |
jasmine-1.0.0 | spec/spec_helper.rb |