Sha256: 2a772b0790100d6b6c26105a305d6a3604379669df0cf86f8041b158f2760d51

Contents?: true

Size: 951 Bytes

Versions: 1

Compression:

Stored size: 951 Bytes

Contents

require "saber"

$spec_dir = File.expand_path("..", __FILE__)
$spec_data = File.expand_path("../data", __FILE__)

Saber::Rc._merge! Optimism <<EOF
p:
  download = Pa("#{$spec_data}/download")

server:
  download = Pa("#{$spec_data}/bt")
  ftp = "ftp://seedbox/bt"
  host = "localhost"
  user = "foo"

port = 8914
token = "token"
drb_uri = "druby://localhost:8915"
EOF

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

1 entries across 1 versions & 1 rubygems

Version Path
saber-0.0.3 spec/spec_helper.rb