test/photobucket_test.rb in muri-0.0.3 vs test/photobucket_test.rb in muri-0.0.4

- old
+ new

@@ -4,11 +4,11 @@ it "should be Photobucket service" do @a.service == 'Photobucket' end end describe "Photobucket parse first" do - before (:all) do + before(:all) do @a = Muri.parse 'http://i244.photobucket.com/albums/gg17/pbapi/file.jpg' end it_should_behave_like "Photobucket parse" it "should have media id" do @@ -17,16 +17,16 @@ it "should have content type" do @a.content_type == "jpg" end - it "should have media url" do - @a.media_url == "http://s244.photobucket.com/albums/gg17/pbapi/?action=view&current=file.jpg" + it "should have a website" do + @a.website == "http://s244.photobucket.com/albums/gg17/pbapi/?action=view&current=file.jpg" end - it "should have website" do - @a.website == "http://i244.photobucket.com/albums/gg17/pbapi/file.jpg" + it "should have media url" do + @a.media_url == "http://i244.photobucket.com/albums/gg17/pbapi/file.jpg" end it "should have media api id" do @a.media_api_id == "http://s244.photobucket.com/albums/gg17/pbapi/?action=view&current=file.jpg" end @@ -34,11 +34,11 @@ it "should have media thumbnail" do @a.media_thumbnail == 'http://mobth244.photobucket.com/albums/gg17/pbapi/file.jpg' end end describe "Photobucket parse second" do - before (:all) do + before(:all) do @a = Muri.parse 'http://gi0006.photobucket.com/groups/0006/G5PAK3TBQS/DSCF0015-1-1.jpg' end it_should_behave_like "Photobucket parse" it "should have media id" do @@ -47,21 +47,21 @@ it "should have content type" do @a.content_type == "jpg" end - it "should have media url" do - @a.media_url == "http://gs0006.photobucket.com/groups/0006/G5PAK3TBQS/?action=view&current=DSCF0015-1-1.jpg" + it "should have a website" do + @a.website == "http://gs0006.photobucket.com/groups/0006/G5PAK3TBQS/?action=view&current=DSCF0015-1-1.jpg" end - it "should have website" do - @a.website == "http://gi0006.photobucket.com/groups/0006/G5PAK3TBQS/DSCF0015-1-1.jpg" + it "should have media url" do + @a.media_url == "http://gi0006.photobucket.com/groups/0006/G5PAK3TBQS/DSCF0015-1-1.jpg" end it "should have media thumbnail" do @a.media_thumbnail == 'http://mobth0006.photobucket.com/groups/0006/G5PAK3TBQS/DSCF0015-1-1.jpg' end it "should have media api id" do @a.media_api_id == "http://gs0006.photobucket.com/groups/0006/G5PAK3TBQS/?action=view&current=DSCF0015-1-1.jpg" end -end \ No newline at end of file +end