Skip to content

Commit

Permalink
[specs] keep VCR cassetes for 6 months and run "standardrb --fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed Mar 17, 2024
1 parent e1fa9cf commit f82d39a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions spec/lib/video_info/providers/vimeo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@
video_url = "https://vimeo.com/642263700"
subject { VideoInfo.new(video_url) }

its(:thumbnail) { should match /i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/ }
its(:thumbnail_large) { should match /i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/ }
its(:thumbnail_medium) { should match /i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_200x150.jpg/ }
its(:thumbnail_small) { should match /i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_100x75.jpg/ }
its(:thumbnail) { should match(/i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/) }
its(:thumbnail_large) { should match(/i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_640.jpg/) }
its(:thumbnail_medium) { should match(/i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_200x150.jpg/) }
its(:thumbnail_small) { should match(/i.vimeocdn.com\/video\/1291917478-2522170a8cfe68dc920e5031deac9bc5ff4d6699c96341fbe.*_100x75.jpg/) }
end

context "with unavailable video" do
Expand Down Expand Up @@ -348,7 +348,7 @@
its(:stats) {
if api_key
should eq({
"plays" => nil,
"plays" => nil
})
else
should eq({
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/video_info/providers/youtube_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@
subject { super().date }

it "should return date video was posted" do
is_expected.to eq Time.parse("Sat Apr 12 22:34:48 UTC 2008",Time.now.utc)
is_expected.to eq Time.parse("Sat Apr 12 22:34:48 UTC 2008", Time.now.utc)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
config.cassette_library_dir = "spec/fixtures/vcr_cassettes"
config.default_cassette_options = {
record: :new_episodes,
re_record_interval: 3 * 30 * 24 * 60 * 60
re_record_interval: 6 * 30 * 24 * 60 * 60
}

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

0 comments on commit f82d39a

Please sign in to comment.