Sha256: f6cb96e306272640d1b7d14a5a9a6b98278bd84c76462ad4b0ab95d96fc7c57d

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 Bytes

Contents

require 'minitest/autorun'
require 'video_thumb'

class VideoThumbTest < Minitest::Test
  def test_youtube_video
    assert_equal "https://img.youtube.com/vi/iEPTlhBmwRg/mqdefault.jpg", VideoThumb::get("http://www.youtube.com/watch?v=iEPTlhBmwRg", "medium")
  end
  def test_vimeo_video
    assert_equal "http://i.vimeocdn.com/video/483188148_640.jpg", VideoThumb::get("http://vimeo.com/101419884")
  end
  def test_secure_vimeo_video
    assert_equal "http://i.vimeocdn.com/video/483188148_640.jpg", VideoThumb::get("https://vimeo.com/101419884")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
video_thumb-0.1.5 test/video_thumb_test.rb
video_thumb-0.1.4 test/video_thumb_test.rb
video_thumb-0.1.3 test/video_thumb_test.rb
video_thumb-0.1.2 test/video_thumb_test.rb