Permalink
Browse files

Actually test the example in the README.

  • Loading branch information...
1 parent 09db32c commit b1aa987514d1116b828e070392452ea0b2aa9021 Ryan Lovelett committed Jun 3, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 test/test_imasquerade.rb
View
@@ -1,7 +1,10 @@
require 'helper'
class TestImasquerade < Test::Unit::TestCase
- should "probably rename this file and start testing for real" do
- flunk "hey buddy, you should probably rename this file and start testing for real"
+ should "perform the example in the README" do
+ uri = "http://itunes.apple.com/us/podcast/the-f-u-sports-talk-podcast/id356478903"
+ proper_response = "http://www.urannonline.com/Collection_Site/The_F_U_Sports_Talk_Podcast/rss.xml"
+ response = Imasquerade::Extractor.parse_itunes_uri uri
+ assert_equal(proper_response, response)
end
end

0 comments on commit b1aa987

Please sign in to comment.