conred 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/conred/version.rb +1 -1
- data/lib/conred/video.rb +1 -1
- data/spec/conred_spec/video_spec.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db0b86d5fd3415a4d5d2756b5c38bdea98a74c6e
|
|
4
|
+
data.tar.gz: 57ee7497bbacc5da1241dd2ad9d5c1e05800d60d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c194befb2223405237b16e81a54003d080857064d61d473372749943e87b8007bc2bb73cd8a7e161876245f5142351b4727dbe1dc35ac8e4a7d86e921d614f26
|
|
7
|
+
data.tar.gz: 35cddb3230d5f6110fd7a4e72bdf55e4e2a898058965173f5dfbb9ebf21995b5bbcdb15c49dbceb017971a28250648d0679ac1114fd5589dcf6c5eadffa169bc
|
data/lib/conred/version.rb
CHANGED
data/lib/conred/video.rb
CHANGED
|
@@ -64,7 +64,6 @@ describe Conred do
|
|
|
64
64
|
describe "check if a video exist" do
|
|
65
65
|
it "should return false if request 404" do
|
|
66
66
|
non_existing_video = Conred::Video.new(:video_url=>"http://www.youtube.com/watch?v=Lrj5Kxdzoux")
|
|
67
|
-
Net::HTTP.stub(:get_response=>Net::HTTPNotFound.new(true, 404, "Not Found"))
|
|
68
67
|
non_existing_video.exist?.should be_false
|
|
69
68
|
end
|
|
70
69
|
|
|
@@ -75,7 +74,6 @@ describe Conred do
|
|
|
75
74
|
|
|
76
75
|
it "should be true if response is 200" do
|
|
77
76
|
existing_video = Conred::Video.new(:video_url=>"http://www.youtube.com/watch?v=Lrj5Kxdzouc")
|
|
78
|
-
Net::HTTP.stub(:get_response=>Net::HTTPOK.new(true,200,"OK"))
|
|
79
77
|
existing_video.exist?.should be_true
|
|
80
78
|
end
|
|
81
79
|
|