Skip to content

Commit

Permalink
UploadIO tests now pass with Ruby 1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
arsduo committed Mar 4, 2011
1 parent cb4dcb9 commit 280f518
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Manifest
Expand Up @@ -10,6 +10,7 @@ lib/koala/http_services.rb
lib/koala/realtime_updates.rb
lib/koala/rest_api.rb
lib/koala/test_users.rb
lib/koala/uploadable_io.rb
readme.md
spec/facebook_data.yml
spec/koala/api_base_tests.rb
Expand All @@ -30,6 +31,7 @@ spec/koala/rest_api/rest_api_no_access_token_tests.rb
spec/koala/rest_api/rest_api_tests.rb
spec/koala/rest_api/rest_api_with_access_token_tests.rb
spec/koala/test_users/test_users_tests.rb
spec/koala/uploadable_io/uploadable_io_tests.rb
spec/koala_spec.rb
spec/koala_spec_helper.rb
spec/koala_spec_without_mocks.rb
Expand Down
6 changes: 3 additions & 3 deletions koala.gemspec
Expand Up @@ -6,11 +6,11 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Alex Koppel, Chris Baclig, Rafi Jacoby, Context Optional"]
s.date = %q{2011-02-27}
s.date = %q{2011-03-04}
s.description = %q{Koala is a lightweight, flexible Ruby SDK for Facebook. It allows read/write access to the social graph via the Graph API and the older REST API, as well as support for realtime updates and OAuth and Facebook Connect authentication. Koala is fully tested and supports Net::HTTP and Typhoeus connections out of the box and can accept custom modules for other services.}
s.email = %q{alex@alexkoppel.com}
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "lib/koala.rb", "lib/koala/graph_api.rb", "lib/koala/http_services.rb", "lib/koala/realtime_updates.rb", "lib/koala/rest_api.rb", "lib/koala/test_users.rb"]
s.files = ["CHANGELOG", "LICENSE", "Manifest", "Rakefile", "init.rb", "koala.gemspec", "lib/koala.rb", "lib/koala/graph_api.rb", "lib/koala/http_services.rb", "lib/koala/realtime_updates.rb", "lib/koala/rest_api.rb", "lib/koala/test_users.rb", "readme.md", "spec/facebook_data.yml", "spec/koala/api_base_tests.rb", "spec/koala/assets/beach.jpg", "spec/koala/graph_and_rest_api/graph_and_rest_api_no_token_tests.rb", "spec/koala/graph_and_rest_api/graph_and_rest_api_with_token_tests.rb", "spec/koala/graph_api/graph_api_no_access_token_tests.rb", "spec/koala/graph_api/graph_api_tests.rb", "spec/koala/graph_api/graph_api_with_access_token_tests.rb", "spec/koala/graph_api/graph_collection_tests.rb", "spec/koala/http_services/http_service_tests.rb", "spec/koala/http_services/net_http_service_tests.rb", "spec/koala/http_services/typhoeus_service_tests.rb", "spec/koala/live_testing_data_helper.rb", "spec/koala/oauth/oauth_tests.rb", "spec/koala/realtime_updates/realtime_updates_tests.rb", "spec/koala/rest_api/rest_api_no_access_token_tests.rb", "spec/koala/rest_api/rest_api_tests.rb", "spec/koala/rest_api/rest_api_with_access_token_tests.rb", "spec/koala/test_users/test_users_tests.rb", "spec/koala_spec.rb", "spec/koala_spec_helper.rb", "spec/koala_spec_without_mocks.rb", "spec/mock_facebook_responses.yml", "spec/mock_http_service.rb"]
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "lib/koala.rb", "lib/koala/graph_api.rb", "lib/koala/http_services.rb", "lib/koala/realtime_updates.rb", "lib/koala/rest_api.rb", "lib/koala/test_users.rb", "lib/koala/uploadable_io.rb"]
s.files = ["CHANGELOG", "LICENSE", "Manifest", "Rakefile", "init.rb", "koala.gemspec", "lib/koala.rb", "lib/koala/graph_api.rb", "lib/koala/http_services.rb", "lib/koala/realtime_updates.rb", "lib/koala/rest_api.rb", "lib/koala/test_users.rb", "lib/koala/uploadable_io.rb", "readme.md", "spec/facebook_data.yml", "spec/koala/api_base_tests.rb", "spec/koala/assets/beach.jpg", "spec/koala/graph_and_rest_api/graph_and_rest_api_no_token_tests.rb", "spec/koala/graph_and_rest_api/graph_and_rest_api_with_token_tests.rb", "spec/koala/graph_api/graph_api_no_access_token_tests.rb", "spec/koala/graph_api/graph_api_tests.rb", "spec/koala/graph_api/graph_api_with_access_token_tests.rb", "spec/koala/graph_api/graph_collection_tests.rb", "spec/koala/http_services/http_service_tests.rb", "spec/koala/http_services/net_http_service_tests.rb", "spec/koala/http_services/typhoeus_service_tests.rb", "spec/koala/live_testing_data_helper.rb", "spec/koala/oauth/oauth_tests.rb", "spec/koala/realtime_updates/realtime_updates_tests.rb", "spec/koala/rest_api/rest_api_no_access_token_tests.rb", "spec/koala/rest_api/rest_api_tests.rb", "spec/koala/rest_api/rest_api_with_access_token_tests.rb", "spec/koala/test_users/test_users_tests.rb", "spec/koala/uploadable_io/uploadable_io_tests.rb", "spec/koala_spec.rb", "spec/koala_spec_helper.rb", "spec/koala_spec_without_mocks.rb", "spec/mock_facebook_responses.yml", "spec/mock_http_service.rb"]
s.homepage = %q{http://github.com/arsduo/koala}
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Koala"]
s.require_paths = ["lib"]
Expand Down
4 changes: 3 additions & 1 deletion spec/koala/http_services/net_http_service_tests.rb
Expand Up @@ -317,7 +317,9 @@ module Bear

describe "when encoding multipart/form-data params" do
it "should replace Koala::UploadableIO values with UploadIO values" do
upload_io = stub('UploadIO')
upload_io = UploadIO.new(__FILE__, "fake type")
#upload_io_response = ["stub1", "stub2"]
#upload_io.stub!(:to_ary).and_return(upload_io_response)

uploadable_io = stub('Koala::UploadableIO')
uploadable_io.should_receive(:kind_of?).with(Koala::UploadableIO).and_return(true)
Expand Down

0 comments on commit 280f518

Please sign in to comment.