test/facebooker/session_test.rb in taweili-facebooker-1.0.38 vs test/facebooker/session_test.rb in taweili-facebooker-1.0.40
- old
+ new
@@ -300,13 +300,17 @@
<fql_result>
<name>query1</name>
<results list="true">
<user>
<<<<<<< HEAD:test/facebooker/session_test.rb
+<<<<<<< HEAD:test/facebooker/session_test.rb
<name>Ari Steinberg</name>
=======
>>>>>>> b7d143104d745caf56a73c8ed092e422c2d00508:test/facebooker/session_test.rb
+=======
+ <name>Ari Steinberg</name>
+>>>>>>> b15371bfe556124cd3ae82746a5aa0e8ba7584e6:test/facebooker/session_test.rb
<uid>46903192</uid>
<rsvp_status xsi:nil="true"/>
</user>
</results>
</fql_result>
@@ -615,33 +619,9 @@
</users_getStandardInfo_response>
XML
end
end
-class PostMethodTest < Test::Unit::TestCase
-
- def setup
- Facebooker.use_curl = true
- Facebooker::Parser.stubs(:parse)
- @uri = URI.parse("http://api.facebook.com/api")
- @service = Facebooker::Service.new("a","b","c")
- @service.stubs("url").returns(@uri)
- end
-
- def teardown
- Facebooker.use_curl = false
- end
-
- def test_use_curl_makes_post_with_curl
- @service.expects(:post_form_with_curl).with(@uri,{:method=>"a"})
- @service.post(:method=>"a")
- end
-
- def test_use_curl_makes_post_file_use_curl_with_multipart
- @service.expects(:post_form_with_curl).with(@uri,{:method=>"a"},true)
- @service.post_file(:method=>"a")
- end
-end
class CanvasSessionTest < Test::Unit::TestCase
def setup
ENV['FACEBOOK_API_KEY'] = '1234567'
ENV['FACEBOOK_SECRET_KEY'] = '7654321'