Sha256: a6f42d7ef97251d781b167fcded2cbba34467c24efe9aee63ce302e6573cb566

Contents?: true

Size: 760 Bytes

Versions: 37

Compression:

Stored size: 760 Bytes

Contents

# ---- requirements
require 'rubygems'
require 'spec'
require 'redgreen'

$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
$LOAD_PATH << File.join(File.dirname(__FILE__),'..','..','bin')
# ---- bugfix
#`exit?': undefined method `run?' for Test::Unit:Module (NoMethodError)
#can be solved with require test/unit but this will result in extra test-output
module Test
  module Unit
    def self.run?
      true
    end
  end
end

Spec::Runner.configure do |config|
  config.mock_with :rr

  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
  
  def fake; end
  
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
uhl-cap-recipes-0.2.11 spec/spec_helper.rb
uhl-cap-recipes-0.2.10 spec/spec_helper.rb
uhl-cap-recipes-0.1.10 spec/spec_helper.rb
uhl-cap-recipes-0.1.9 spec/spec_helper.rb
uhl-cap-recipes-0.1.8 spec/spec_helper.rb
uhl-cap-recipes-0.1.7 spec/spec_helper.rb
uhl-cap-recipes-0.1.6 spec/spec_helper.rb
uhl-cap-recipes-0.1.5 spec/spec_helper.rb
uhl-cap-recipes-0.1.4 spec/spec_helper.rb
uhl-cap-recipes-0.1.3 spec/spec_helper.rb
uhl-cap-recipes-0.1.2 spec/spec_helper.rb
uhl-cap-recipes-0.1.1 spec/spec_helper.rb
uhl-cap-recipes-0.1.0 spec/spec_helper.rb
crazycode-cap-recipes-0.5.3 spec/spec_helper.rb
crazycode-cap-recipes-0.5.2 spec/spec_helper.rb
crazycode-cap-recipes-0.5.1 spec/spec_helper.rb
crazycode-cap-recipes-0.5.0 spec/spec_helper.rb
crazycode-cap-recipes-0.4.14 spec/spec_helper.rb
crazycode-cap-recipes-0.4.13 spec/spec_helper.rb
crazycode-cap-recipes-0.4.12 spec/spec_helper.rb