From 7fad453fa746733b5f4c39cad1875b9b91a0edbb Mon Sep 17 00:00:00 2001 From: Amir Tocker Date: Thu, 6 Dec 2018 18:07:45 +0200 Subject: [PATCH] Test support for the `auto` keyword in the `start_offset` parameter --- spec/video_url_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/video_url_spec.rb b/spec/video_url_spec.rb index 395d0996..ae6280fc 100644 --- a/spec/video_url_spec.rb +++ b/spec/video_url_spec.rb @@ -106,6 +106,11 @@ .to produce_url("#{upload_path}/#{short}_35p/video_id") .and empty_options end + it 'should support the "auto" keyword' do + expect(["video_id", { :resource_type => 'video', long => 'auto' }]) + .to produce_url("#{upload_path}/#{short}_auto/video_id") + .and empty_options + end end end