This repository was archived by the owner on Sep 15, 2018. It is now read-only.
File tree 2 files changed +20
-16
lines changed
2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 1
1
require File . expand_path ( File . dirname ( __FILE__ ) + '/../spec_helper' )
2
2
require File . expand_path ( File . dirname ( __FILE__ ) + '/../../lib/captured/uploaders/imageshack_uploader' )
3
3
4
- describe "SCP File Uploader" do
5
- it "should upload to the server" do
6
- config = { "upload" => { "url" => "http://fuzzymonk.com/captured/" ,
7
- "type" => "imageshack" ,
8
- "shackid" => "capturedspec" } }
4
+ if CONFIG [ 'imageshack_spec' ]
5
+ describe "Imageshack File Uploader" do
6
+ it "should upload to the server" do
7
+ config = { "upload" => { "url" => "http://fuzzymonk.com/captured/" ,
8
+ "type" => "imageshack" ,
9
+ "shackid" => "capturedspec" } }
9
10
10
- @uploader = ImageshackUploader . new ( config )
11
- @uploader . upload ( File . expand_path ( File . dirname ( __FILE__ ) + '/../../resources/captured.png' ) )
12
- system "open #{ @uploader . url } "
11
+ @uploader = ImageshackUploader . new ( config )
12
+ @uploader . upload ( File . expand_path ( File . dirname ( __FILE__ ) + '/../../resources/captured.png' ) )
13
+ system "open #{ @uploader . url } "
14
+ end
13
15
end
14
16
end
Original file line number Diff line number Diff line change 1
1
require File . expand_path ( File . dirname ( __FILE__ ) + '/../spec_helper' )
2
2
require File . expand_path ( File . dirname ( __FILE__ ) + '/../../lib/captured/uploaders/scp_uploader' )
3
3
4
- describe "SCP File Uploader" do
5
- it "should upload to the server" do
6
- # This spec requires a scp_spec section in the config file with the
7
- # scp settings
8
- config = YAML . load_file ( "#{ ENV [ 'HOME' ] } /.captured.yml" ) [ 'scp_spec' ]
9
- @uploader = ScpUploader . new ( config )
10
- @uploader . upload ( File . expand_path ( File . dirname ( __FILE__ ) + '/../../resources/captured.png' ) )
11
- system "open #{ @uploader . url } "
4
+ if CONFIG [ 'scp_spec' ]
5
+ describe "SCP File Uploader" do
6
+ it "should upload to the server" do
7
+ # This spec requires a scp_spec section in the config file with the
8
+ # scp settings
9
+ config = YAML . load_file ( "#{ ENV [ 'HOME' ] } /.captured.yml" ) [ 'scp_spec' ]
10
+ @uploader = ScpUploader . new ( config )
11
+ @uploader . upload ( File . expand_path ( File . dirname ( __FILE__ ) + '/../../resources/captured.png' ) )
12
+ system "open #{ @uploader . url } "
13
+ end
12
14
end
13
15
end
You can’t perform that action at this time.
0 commit comments