Sha256: 7e84ed104600dafb70a3ab36c6bda39281c87c48e13153060852e6dd5c7802a9

Contents?: true

Size: 623 Bytes

Versions: 4

Compression:

Stored size: 623 Bytes

Contents

require "pa"

$specdir = Pa.dir(__FILE__)

RSpec.configure do |config|
  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

  alias :silence :capture
end

module Kernel 
private

  def xdescribe(*args, &blk)
    describe *args do
      pending "xxxxxxxxx"
    end
  end

  def xcontext(*args, &blk)
    context *args do
      pending "xxxxxxxxx"
    end
  end

  def xit(*args, &blk)
    it *args do
      pending "xxxxxxxx"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pa-1.2.3 spec/spec_helper.rb
pa-1.2.2 spec/spec_helper.rb
pa-1.2.1 spec/spec_helper.rb
pa-1.2.0 spec/spec_helper.rb