spec/spec_helper.rb in saber-0.0.7 vs spec/spec_helper.rb in saber-1.0.0
- old
+ new
@@ -4,10 +4,12 @@
$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"
@@ -15,11 +17,34 @@
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