Sha256: d97b13556631e8f8c881acb4d27ba85ae0d9f3aa326fa711d0da4cdb5d278446

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

require_relative 'spec_helper'

describe FilmSnob::YouTube do
  it 'may not be embeddable' do
    VCR.use_cassette('bad_youtube_url') do
      snob = FilmSnob.new('http://youtube.com/watch?v=malformedid')
      expect{snob.html}.to raise_error(FilmSnob::NotEmbeddableError)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
film_snob-0.3.9 spec/youtube_spec.rb
film_snob-0.3.8 spec/youtube_spec.rb
film_snob-0.3.7 spec/youtube_spec.rb
film_snob-0.3.6 spec/youtube_spec.rb