Skip to content

Commit f82d39a

Browse files
committedMar 17, 2024·
[specs] keep VCR cassetes for 6 months and run "standardrb --fix"
1 parent e1fa9cf commit f82d39a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎spec/lib/video_info/providers/vimeo_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@
313313
video_url = "https://vimeo.com/642263700"
314314
subject { VideoInfo.new(video_url) }
315315

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/) }
320320
end
321321

322322
context "with unavailable video" do
@@ -348,7 +348,7 @@
348348
its(:stats) {
349349
if api_key
350350
should eq({
351-
"plays" => nil,
351+
"plays" => nil
352352
})
353353
else
354354
should eq({

‎spec/lib/video_info/providers/youtube_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566
subject { super().date }
567567

568568
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)
570570
end
571571
end
572572

‎spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
1818
config.default_cassette_options = {
1919
record: :new_episodes,
20-
re_record_interval: 3 * 30 * 24 * 60 * 60
20+
re_record_interval: 6 * 30 * 24 * 60 * 60
2121
}
2222

2323
# When re-recording VCR cassetes, the necessary keys can be set as env variables:

0 commit comments

Comments
 (0)
Please sign in to comment.