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