Sha256: ba028949db6eed087000874cc883e1688bdddf68817b2cf6934b5632856a779b
Contents?: true
Size: 969 Bytes
Versions: 2
Compression:
Stored size: 969 Bytes
Contents
require_relative '../test_helper' describe YoutubeDL do describe '.download' do after do remove_downloaded_files end it 'should download videos' do YoutubeDL.get TEST_URL, output: TEST_FILENAME, format: TEST_FORMAT assert File.exist? TEST_FILENAME end it 'should download multiple videos' do YoutubeDL.download [TEST_URL, TEST_URL2] assert_equal Dir.glob('nope*').length, 2 end end describe '.extractors' do it 'should return an Array of Strings' do extractors = YoutubeDL.extractors assert_instance_of Array, extractors assert_instance_of String, extractors.first end end describe '.binary_version' do before do @version = YoutubeDL.binary_version end it 'should return a string' do assert_instance_of String, @version end it 'should be a specific format with no newlines' do assert_match /\d+.\d+.\d+\z/, @version end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
youtube-dl.rb-0.1.1 | test/youtube-dl/youtube-dl_test.rb |
youtube-dl.rb-0.1.0 | test/youtube-dl/youtube-dl_test.rb |