Sha256: 2e67c4316e2ebf9869337e70c3fa9dd7bd75e75bc9a90686eaeb3ad5fcd1a9a8
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
require "saber" require "logger" $spec_dir = File.expand_path("..", __FILE__) $spec_data = File.expand_path("../data", __FILE__) Saber::Rc._merge! Optimism <<EOF p: home = Pa("#{$spec_data}/_saber") homerc = Pa("#{$spec_data}/_saberrc") 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" # upload p: watch = nil username = "username" bib: username = "bib-username" announce_url = "bib-announce_url" ptp: announce_url = "ptp-announce_url" EOF $log = Logger.new(StringIO.new) require "thor" Saber.ui = Saber::UI::Shell.new(Thor.new.shell) require "vcr" VCR.configure do |c| c.cassette_library_dir = "spec/cassettes" c.hook_into :webmock end 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-1.0.0 | spec/spec_helper.rb |