Skip to content

Commit

Permalink
removed unused code/fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
morgoth committed Nov 2, 2012
1 parent 2b00066 commit 40db36d
Show file tree
Hide file tree
Showing 32 changed files with 0 additions and 6,384 deletions.
29 changes: 0 additions & 29 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,4 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end

def curl(url, filename, include_headers = false)
headers = "i" if include_headers
system %{/usr/bin/curl -#{headers}s -H "GData-Version: 2" "#{url}" -X GET -o #{filename}}
end

namespace :test do
desc "Create fixtures files"
task :create_fixtures do
album_list_url = "https://picasaweb.google.com/data/feed/api/user/106136347770555028022?v=2&alt=json&prettyprint=true"
tag_list_url = "https://picasaweb.google.com/data/feed/api/user/106136347770555028022?v=2&alt=json&kind=tag&prettyprint=true"
album_show_url = "https://picasaweb.google.com/data/feed/api/user/106136347770555028022/albumid/5239555770355467953?v=2&alt=json&prettyprint=true"
comment_list_url = "https://picasaweb.google.com/data/feed/api/user/106136347770555028022?v=2&alt=json&kind=comment&prettyprint=true"
album_show_with_one_photo_url = "https://picasaweb.google.com/data/feed/api/user/104662451283465127832/albumid/5631443706739061905?v=2&alt=json&prettyprint=true"
presenters_path = "test/fixtures/presenters"
album_path = "test/fixtures/album"

# Presenters
curl album_list_url, "#{presenters_path}/album_list.json"
curl tag_list_url, "#{presenters_path}/tag_list.json"
curl album_show_url, "#{presenters_path}/album_show.json"
curl comment_list_url, "#{presenters_path}/comment_list.json"
curl album_show_with_one_photo_url, "#{presenters_path}/album_show_with_one_photo.json"

# album
curl album_list_url, "#{album_path}/album_list.json", true
curl album_show_url, "#{album_path}/album_show.json", true
end
end

task :default => :test
21 changes: 0 additions & 21 deletions test/fixtures/album/album-create.txt

This file was deleted.

105 changes: 0 additions & 105 deletions test/fixtures/album/album-list-with-tag.txt

This file was deleted.

105 changes: 0 additions & 105 deletions test/fixtures/album/album-list.txt

This file was deleted.

Loading

0 comments on commit 40db36d

Please sign in to comment.