Skip to content
Browse files

Delete client test

  • Loading branch information...
1 parent 1755d48 commit 9a409d5e0d00f730e0b907dafc8aed787b863d72 @janko-m committed May 2, 2012
Showing with 0 additions and 40 deletions.
  1. +0 −40 test/client_test.rb
View
40 test/client_test.rb
@@ -1,40 +0,0 @@
-# encoding: utf-8
-require 'test'
-require 'flickrie/client'
-
-class ClientTest < Test::Unit::TestCase
- def setup
- @client = Flickrie.client
- @set_id = 72157629851991663
- @media_id = 7093038981
- @user_nsid = '67131352@N04'
- end
-
- def test_internals
- assert_equal ENV['FLICKR_API_KEY'], Flickrie.api_key
- assert_instance_of Flickrie::Client, @client
- end
-
- def test_api_calls
- assert_nothing_raised do
- # people
- @client.find_user_by_email('janko.marohnic@gmail.com')
- @client.find_user_by_username('Janko Marohnić')
- @client.get_user_info(@user_nsid)
- @client.public_media_from_user(@user_nsid)
-
- # photos
- @client.get_media_info(@media_id)
- @client.get_media_sizes(@media_id)
- @client.search_media(:user_id => @user_nsid)
-
- # licenses
- @client.get_licenses
-
- # photosets
- @client.get_set_info(@set_id)
- @client.sets_from_user(@user_nsid)
- @client.media_from_set(@set_id)
- end
- end
-end

0 comments on commit 9a409d5

Please sign in to comment.
Something went wrong with that request. Please try again.