Sha256: 01a0445d6d452cf6334295df88266f5b0a0ef790e34af0fa84c2165cf0e3594b

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

require 'spec_helper'

module Sofa::TVRage

describe Schedule do
  before do
    @country = "US"
    @xml = File.read("spec/fixtures/tvrage/full_schedule.xml")
    FakeWeb.register_uri(:get, "http://services.tvrage.com/feeds/fullschedule.php?country=#{@country}", :body => @xml)
  end

  it "should get full US schedule" do
    Schedule.full(@country).should == Crack::XML.parse(@xml)["schedule"]
  end
end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sofa-0.1.4 spec/sofa/tvrage/schedule_spec.rb
sofa-0.1.3 spec/sofa/tvrage/schedule_spec.rb
sofa-0.1.2 spec/sofa/tvrage/schedule_spec.rb
sofa-0.1.1 spec/sofa/tvrage/schedule_spec.rb
sofa-0.1.0 spec/sofa/tvrage/schedule_spec.rb