Sha256: 74735cc3a4f4ae590929f9bf9d835948fe8d520876399f99738a20a447005923

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

# Encoding: utf-8

describe FilmSnob::Rutube do
  it "should parse rutube URLs" do
    url = "http://rutube.ru/video/586afc0f5c652439a2dca8b34d19a086/"
    film = FilmSnob.new(url)
    expect(film.id).to eq "586afc0f5c652439a2dca8b34d19a086"
    expect(film.site).to eq :rutube
    VCR.use_cassette "rutube/rabbit_eat_raspberry" do
      expect(film.title).to eq "Кролик ест малину"
      expect { film.html }.not_to raise_error
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
film_snob-2.0.0 spec/film_snob/oembed_providers/rutube_spec.rb
film_snob-1.0.1 spec/film_snob/oembed_providers/rutube_spec.rb
film_snob-1.0.0 spec/film_snob/oembed_providers/rutube_spec.rb
film_snob-0.6.5 spec/film_snob/video_sites/rutube_spec.rb