dropio 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/dropio.gemspec +1 -1
- data/lib/dropio.rb +1 -1
- data/spec/dropio/drop_spec.rb +9 -1
- metadata +1 -1
data/dropio.gemspec
CHANGED
data/lib/dropio.rb
CHANGED
data/spec/dropio/drop_spec.rb
CHANGED
@@ -98,10 +98,18 @@ describe Drop do
|
|
98
98
|
@asset = stub(Asset)
|
99
99
|
@asset.should_receive(:drop=).once
|
100
100
|
@client.should_receive(:handle).with(:asset,{}).and_return(@asset)
|
101
|
-
@api.should_receive(:add_file).with(@mydrop.name,"/mypath/myfile.txt"
|
101
|
+
@api.should_receive(:add_file).with(@mydrop.name,"/mypath/myfile.txt", nil, nil, nil, @mydrop.default_token).and_return({})
|
102
102
|
@mydrop.add_file("/mypath/myfile.txt").should == @asset
|
103
103
|
end
|
104
104
|
|
105
|
+
it "should add files from a path with pingback url and convertsion target" do
|
106
|
+
@asset = stub(Asset)
|
107
|
+
@asset.should_receive(:drop=).once
|
108
|
+
@client.should_receive(:handle).with(:asset,{}).and_return(@asset)
|
109
|
+
@api.should_receive(:add_file).with(@mydrop.name,"/mypath/myfile.txt", 'H264_HIGH_RES', 'http://drop.io/test/pinged', nil, @mydrop.default_token).and_return({})
|
110
|
+
@mydrop.add_file("/mypath/myfile.txt", 'H264_HIGH_RES', 'http://drop.io/test/pinged').should == @asset
|
111
|
+
end
|
112
|
+
|
105
113
|
it "should create notes from title and contents" do
|
106
114
|
@asset = stub(Asset)
|
107
115
|
@asset.should_receive(:drop=).once
|