Sha256: 26f6d18481c75adb38b97913c2e814e0e3ff95c6e78a7c1d319adb8c02dbea02
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
require_relative 'spec_helper' describe VimeoId do subject { VimeoId } %w[ https://vimeo.com/11111111 http://vimeo.com/11111111 https://www.vimeo.com/11111111 http://www.vimeo.com/11111111 https://vimeo.com/channels/11111111 http://vimeo.com/channels/11111111 https://vimeo.com/groups/name/videos/11111111 http://vimeo.com/groups/name/videos/11111111 https://vimeo.com/album/2222222/video/11111111 http://vimeo.com/album/2222222/video/11111111 https://vimeo.com/11111111?param=test http://vimeo.com/11111111?param=test ].each do |url| it "extracts 11111111 from #{url}" do subject.from(url).should == "11111111" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vimeo_id-0.0.1 | spec/vimeo_id_spec.rb |