File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 313
313
video_url = "https://vimeo.com/642263700"
314
314
subject { VideoInfo . new ( video_url ) }
315
315
316
- its ( :thumbnail ) { should match /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/ }
317
- its ( :thumbnail_large ) { should match /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/ }
318
- its ( :thumbnail_medium ) { should match /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_200x150.jpg/ }
319
- its ( :thumbnail_small ) { should match /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_100x75.jpg/ }
316
+ its ( :thumbnail ) { should match ( /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/ ) }
317
+ its ( :thumbnail_large ) { should match ( /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/ ) }
318
+ its ( :thumbnail_medium ) { should match ( /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_200x150.jpg/ ) }
319
+ its ( :thumbnail_small ) { should match ( /i.vimeocdn.com\/ video\/ 1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_100x75.jpg/ ) }
320
320
end
321
321
322
322
context "with unavailable video" do
348
348
its ( :stats ) {
349
349
if api_key
350
350
should eq ( {
351
- "plays" => nil ,
351
+ "plays" => nil
352
352
} )
353
353
else
354
354
should eq ( {
Original file line number Diff line number Diff line change 566
566
subject { super ( ) . date }
567
567
568
568
it "should return date video was posted" do
569
- is_expected . to eq Time . parse ( "Sat Apr 12 22:34:48 UTC 2008" , Time . now . utc )
569
+ is_expected . to eq Time . parse ( "Sat Apr 12 22:34:48 UTC 2008" , Time . now . utc )
570
570
end
571
571
end
572
572
Original file line number Diff line number Diff line change 17
17
config . cassette_library_dir = "spec/fixtures/vcr_cassettes"
18
18
config . default_cassette_options = {
19
19
record : :new_episodes ,
20
- re_record_interval : 3 * 30 * 24 * 60 * 60
20
+ re_record_interval : 6 * 30 * 24 * 60 * 60
21
21
}
22
22
23
23
# When re-recording VCR cassetes, the necessary keys can be set as env variables:
You can’t perform that action at this time.
0 commit comments