Sha256: c76ca2e7dd81620c1d978aaeb8677f09ee6bf2e271ecd9c0f72b1c899297bb5b
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
require 'spec_helper' describe Imasquerade, vcr: { cassette_name: 'itunes', record: :new_episodes } do describe '.parse_itunes_uri' do let(:uri) { 'https://itunes.apple.com/us/podcast/wdw-radio-show-your-walt-disney/id215517191?mt=2' } let(:expected_response) { 'http://www.wdwradio.com/xml/wdwradio.xml' } subject(:response) { Imasquerade.parse_itunes_uri(uri) } it 'should perform the example in the README' do expect(response).to eq(expected_response) end end describe 'issue #3' do let(:uri) { 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=347207945' } let(:expected_response) { 'http://feeds.feedwrench.com/TeachMeToCodeiPhone.rss' } subject(:response) { Imasquerade.parse_itunes_uri(uri) } it 'should resolve the podcast in issue #3' do expect(response).to eq(expected_response) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
imasquerade-0.3.0 | spec/imasquerade_spec.rb |