require 'rails_helper' describe MrVideo::Episode do let(:episode_class) { MrVideo::Episode } let(:name) { 'dummy_cassette' } let(:id) { MrVideo::IdService.encode(name) } let(:cassette) { MrVideo::Cassette.find(id) } let(:episode) { cassette.episodes[0] } subject { episode } describe 'properties' do describe '#id' do subject { episode.id } it { should == MrVideo::IdService.encode(episode.url) } end describe '#url' do subject { episode.url } it { should == 'http://www.thebellhouseny.com/calendar/' } end describe '#request_method' do subject { episode.request_method } it { should == 'get' } end describe '#website_url' do subject { episode.website_url } it { should == 'http://www.thebellhouseny.com' } end describe '#content' do subject { episode.content } it { should match(/