-
-
Save sferik/84a9b94df1188b69b10f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/sferik/.rbenv/versions/1.9.3-p392/bin/ruby -S rspec ./spec/twitter/action/favorite_spec.rb ./spec/twitter/action/follow_spec.rb ./spec/twitter/action/list_member_added_spec.rb ./spec/twitter/action/mention_spec.rb ./spec/twitter/action/reply_spec.rb ./spec/twitter/action/retweet_spec.rb ./spec/twitter/action_factory_spec.rb ./spec/twitter/action_spec.rb ./spec/twitter/api/direct_messages_spec.rb ./spec/twitter/api/favorites_spec.rb ./spec/twitter/api/friends_and_followers_spec.rb ./spec/twitter/api/geo_spec.rb ./spec/twitter/api/help_spec.rb ./spec/twitter/api/lists_spec.rb ./spec/twitter/api/saved_searches_spec.rb ./spec/twitter/api/search_spec.rb ./spec/twitter/api/spam_reporting_spec.rb ./spec/twitter/api/suggested_users_spec.rb ./spec/twitter/api/timelines_spec.rb ./spec/twitter/api/trends_spec.rb ./spec/twitter/api/tweets_spec.rb ./spec/twitter/api/undocumented_spec.rb ./spec/twitter/api/users_spec.rb ./spec/twitter/base_spec.rb ./spec/twitter/basic_user_spec.rb ./spec/twitter/client_spec.rb ./spec/twitter/configuration_spec.rb ./spec/twitter/cursor_spec.rb ./spec/twitter/direct_message_spec.rb ./spec/twitter/error/client_error_spec.rb ./spec/twitter/error/server_error_spec.rb ./spec/twitter/error_spec.rb ./spec/twitter/geo/point_spec.rb ./spec/twitter/geo/polygon_spec.rb ./spec/twitter/geo_factory_spec.rb ./spec/twitter/geo_spec.rb ./spec/twitter/identifiable_spec.rb ./spec/twitter/list_spec.rb ./spec/twitter/media/photo_spec.rb ./spec/twitter/media_factory_spec.rb ./spec/twitter/oembed_spec.rb ./spec/twitter/place_spec.rb ./spec/twitter/profile_banner_spec.rb ./spec/twitter/rate_limit_spec.rb ./spec/twitter/relationship_spec.rb ./spec/twitter/saved_search_spec.rb ./spec/twitter/search_results_spec.rb ./spec/twitter/settings_spec.rb ./spec/twitter/size_spec.rb ./spec/twitter/source_user_spec.rb ./spec/twitter/suggestion_spec.rb ./spec/twitter/target_user_spec.rb ./spec/twitter/trend_spec.rb ./spec/twitter/tweet_spec.rb ./spec/twitter/user_spec.rb ./spec/twitter_spec.rb | |
.......................................................FF..............................................................................................FFFF.........................................................................FFFFF.............................................................................FF...............................................................................................FF............................................................................................................................................................................................................................................................................................................................................................. | |
Failures: | |
1) Twitter::API::DirectMessages#direct_message_create requests the correct resource | |
Failure/Error: @client.direct_message_create("pengwynn", "Creating a fixture for the Twitter gem") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/direct_messages/new.json with body 'screen_name=pengwynn&text=Creating+a+fixture+for+the+Twitter+gem' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="a68f6142d1ecf2f4b99f81855285f960", oauth_signature="SRRi1Eg0bz%2BMpvH6nJ4ecHsCXLg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/direct_messages/new.json"). | |
with(:body => {"screen_name"=>"pengwynn", "text"=>"Creating+a+fixture+for+the+Twitter+gem"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="a68f6142d1ecf2f4b99f81855285f960", oauth_signature="SRRi1Eg0bz%2BMpvH6nJ4ecHsCXLg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/direct_messages/new.json"). | |
with(:body => {"screen_name"=>"pengwynn", "text"=>"Creating a fixture for the Twitter gem"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/direct_messages.rb:141:in `direct_message_create' | |
# ./spec/twitter/api/direct_messages_spec.rb:110:in `block (3 levels) in <top (required)>' | |
2) Twitter::API::DirectMessages#direct_message_create returns the sent message | |
Failure/Error: direct_message = @client.direct_message_create("pengwynn", "Creating a fixture for the Twitter gem") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/direct_messages/new.json with body 'screen_name=pengwynn&text=Creating+a+fixture+for+the+Twitter+gem' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="4efa66a4d8b9650b8b7132f795ee41cf", oauth_signature="gMns23KGsAIANbMj9e84ZUNO1Iw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/direct_messages/new.json"). | |
with(:body => {"screen_name"=>"pengwynn", "text"=>"Creating+a+fixture+for+the+Twitter+gem"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="4efa66a4d8b9650b8b7132f795ee41cf", oauth_signature="gMns23KGsAIANbMj9e84ZUNO1Iw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/direct_messages/new.json"). | |
with(:body => {"screen_name"=>"pengwynn", "text"=>"Creating a fixture for the Twitter gem"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/direct_messages.rb:141:in `direct_message_create' | |
# ./spec/twitter/api/direct_messages_spec.rb:114:in `block (3 levels) in <top (required)>' | |
3) Twitter::API::PlacesAndGeo#similar_places requests the correct resource | |
Failure/Error: @client.similar_places(:lat => "37.7821120598956", :long => "-122.400612831116", :name => "Twitter HQ") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/geo/similar_places.json?lat=37.7821120598956&long=-122.400612831116&name=Twitter%2BHQ with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="6a4d45274ab87c4d8c30490ca2f871da", oauth_signature="1WaqAjxBUS2SURajTMEtRRLPWnQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:get, "https://api.twitter.com/1.1/geo/similar_places.json?lat=37.7821120598956&long=-122.400612831116&name=Twitter%2BHQ"). | |
with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="6a4d45274ab87c4d8c30490ca2f871da", oauth_signature="1WaqAjxBUS2SURajTMEtRRLPWnQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:get, "https://api.twitter.com/1.1/geo/similar_places.json?lat=37.7821120598956&long=-122.400612831116&name=Twitter%20HQ") | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:64:in `get' | |
# ./lib/twitter/api/places_and_geo.rb:116:in `geo_objects_from_response' | |
# ./lib/twitter/api/places_and_geo.rb:85:in `similar_places' | |
# ./spec/twitter/api/geo_spec.rb:58:in `block (3 levels) in <top (required)>' | |
4) Twitter::API::PlacesAndGeo#similar_places returns similar places | |
Failure/Error: places = @client.similar_places(:lat => "37.7821120598956", :long => "-122.400612831116", :name => "Twitter HQ") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/geo/similar_places.json?lat=37.7821120598956&long=-122.400612831116&name=Twitter%2BHQ with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="0f90ba4e76aa8342d1b56f02152a7542", oauth_signature="ywqElMm8huUJTmlJoPGktdXDzUk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:get, "https://api.twitter.com/1.1/geo/similar_places.json?lat=37.7821120598956&long=-122.400612831116&name=Twitter%2BHQ"). | |
with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="0f90ba4e76aa8342d1b56f02152a7542", oauth_signature="ywqElMm8huUJTmlJoPGktdXDzUk%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137896", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:get, "https://api.twitter.com/1.1/geo/similar_places.json?lat=37.7821120598956&long=-122.400612831116&name=Twitter%20HQ") | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:64:in `get' | |
# ./lib/twitter/api/places_and_geo.rb:116:in `geo_objects_from_response' | |
# ./lib/twitter/api/places_and_geo.rb:85:in `similar_places' | |
# ./spec/twitter/api/geo_spec.rb:62:in `block (3 levels) in <top (required)>' | |
5) Twitter::API::PlacesAndGeo#place_create requests the correct resource | |
Failure/Error: @client.place_create(:name => "@sferik's Apartment", :token => "22ff5b1f7159032cf69218c4d8bb78bc", :contained_within => "41bcb736f84a799e", :lat => "37.783699", :long => "-122.393581") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/geo/place.json with body 'name=%40sferik%27s+Apartment&token=22ff5b1f7159032cf69218c4d8bb78bc&contained_within=41bcb736f84a799e&lat=37.783699&long=-122.393581' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="c1d4403829859b9c69a0460d30d6e3d1", oauth_signature="VadeZ7aImaec34gniueNUcp%2Fanc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/geo/place.json"). | |
with(:body => {"contained_within"=>"41bcb736f84a799e", "lat"=>"37.783699", "long"=>"-122.393581", "name"=>"@sferik's+Apartment", "token"=>"22ff5b1f7159032cf69218c4d8bb78bc"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="c1d4403829859b9c69a0460d30d6e3d1", oauth_signature="VadeZ7aImaec34gniueNUcp%2Fanc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/geo/place.json"). | |
with(:body => {"contained_within"=>"41bcb736f84a799e", "lat"=>"37.783699", "long"=>"-122.393581", "name"=>"@sferik's Apartment", "token"=>"22ff5b1f7159032cf69218c4d8bb78bc"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/places_and_geo.rb:106:in `place_create' | |
# ./spec/twitter/api/geo_spec.rb:73:in `block (3 levels) in <top (required)>' | |
6) Twitter::API::PlacesAndGeo#place_create returns a place | |
Failure/Error: place = @client.place_create(:name => "@sferik's Apartment", :token => "22ff5b1f7159032cf69218c4d8bb78bc", :contained_within => "41bcb736f84a799e", :lat => "37.783699", :long => "-122.393581") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/geo/place.json with body 'name=%40sferik%27s+Apartment&token=22ff5b1f7159032cf69218c4d8bb78bc&contained_within=41bcb736f84a799e&lat=37.783699&long=-122.393581' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="b5fe0c6a248d9a43dd5a006500452867", oauth_signature="XrAvRVbCShVXll96%2BD2CA4zUu9c%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/geo/place.json"). | |
with(:body => {"contained_within"=>"41bcb736f84a799e", "lat"=>"37.783699", "long"=>"-122.393581", "name"=>"@sferik's+Apartment", "token"=>"22ff5b1f7159032cf69218c4d8bb78bc"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="b5fe0c6a248d9a43dd5a006500452867", oauth_signature="XrAvRVbCShVXll96%2BD2CA4zUu9c%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/geo/place.json"). | |
with(:body => {"contained_within"=>"41bcb736f84a799e", "lat"=>"37.783699", "long"=>"-122.393581", "name"=>"@sferik's Apartment", "token"=>"22ff5b1f7159032cf69218c4d8bb78bc"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/places_and_geo.rb:106:in `place_create' | |
# ./spec/twitter/api/geo_spec.rb:77:in `block (3 levels) in <top (required)>' | |
7) Twitter::API::Lists#list_update with a screen name passed requests the correct resource | |
Failure/Error: @client.list_update("sferik", "presidents", :description => "Presidents of the United States of America") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/lists/update.json with body 'description=Presidents+of+the+United+States+of+America&slug=presidents&owner_screen_name=sferik' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="7d2735e315eed76fc254a0c6aa477f5f", oauth_signature="%2FLJvw6vG3v5etQKRPPyRt8z7oLw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents+of+the+United+States+of+America", "owner_screen_name"=>"sferik", "slug"=>"presidents"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="7d2735e315eed76fc254a0c6aa477f5f", oauth_signature="%2FLJvw6vG3v5etQKRPPyRt8z7oLw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents of the United States of America", "owner_screen_name"=>"sferik", "slug"=>"presidents"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/lists.rb:519:in `list_from_response' | |
# ./lib/twitter/api/lists.rb:406:in `list_update' | |
# ./spec/twitter/api/lists_spec.rb:599:in `block (4 levels) in <top (required)>' | |
8) Twitter::API::Lists#list_update with a screen name passed returns the updated list | |
Failure/Error: list = @client.list_update("sferik", "presidents", :description => "Presidents of the United States of America") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/lists/update.json with body 'description=Presidents+of+the+United+States+of+America&slug=presidents&owner_screen_name=sferik' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="ea27410be1ebc069ef75afb7dee91109", oauth_signature="DR0ky25qTd3DDisbfwSq54BlKCY%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents+of+the+United+States+of+America", "owner_screen_name"=>"sferik", "slug"=>"presidents"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="ea27410be1ebc069ef75afb7dee91109", oauth_signature="DR0ky25qTd3DDisbfwSq54BlKCY%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents of the United States of America", "owner_screen_name"=>"sferik", "slug"=>"presidents"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/lists.rb:519:in `list_from_response' | |
# ./lib/twitter/api/lists.rb:406:in `list_update' | |
# ./spec/twitter/api/lists_spec.rb:603:in `block (4 levels) in <top (required)>' | |
9) Twitter::API::Lists#list_update without a screen name passed requests the correct resource | |
Failure/Error: @client.list_update("presidents", :description => "Presidents of the United States of America") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/lists/update.json with body 'description=Presidents+of+the+United+States+of+America&slug=presidents&owner_screen_name=sferik' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="d9fa2c9f072ea421fc2a01c5ef5a3134", oauth_signature="dW04iAlHAG3YsiYrrxbZg5S00aw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents+of+the+United+States+of+America", "owner_screen_name"=>"sferik", "slug"=>"presidents"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="d9fa2c9f072ea421fc2a01c5ef5a3134", oauth_signature="dW04iAlHAG3YsiYrrxbZg5S00aw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents of the United States of America", "owner_screen_name"=>"sferik", "slug"=>"presidents"}) | |
stub_request(:get, "https://api.twitter.com/1.1/account/verify_credentials.json") | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/lists.rb:519:in `list_from_response' | |
# ./lib/twitter/api/lists.rb:406:in `list_update' | |
# ./spec/twitter/api/lists_spec.rb:614:in `block (4 levels) in <top (required)>' | |
10) Twitter::API::Lists#list_update with a list ID passed requests the correct resource | |
Failure/Error: @client.list_update("sferik", 12345678, :description => "Presidents of the United States of America") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/lists/update.json with body 'description=Presidents+of+the+United+States+of+America&list_id=12345678&owner_screen_name=sferik' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="feb4c39d6d9e00bece3c855197aca9fa", oauth_signature="a6JZljm6lvfFAGdDw1HV%2FdvjTGI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents+of+the+United+States+of+America", "list_id"=>"12345678", "owner_screen_name"=>"sferik"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="feb4c39d6d9e00bece3c855197aca9fa", oauth_signature="a6JZljm6lvfFAGdDw1HV%2FdvjTGI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents of the United States of America", "list_id"=>"12345678", "owner_screen_name"=>"sferik"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/lists.rb:519:in `list_from_response' | |
# ./lib/twitter/api/lists.rb:406:in `list_update' | |
# ./spec/twitter/api/lists_spec.rb:623:in `block (4 levels) in <top (required)>' | |
11) Twitter::API::Lists#list_update with a list object passed requests the correct resource | |
Failure/Error: @client.list_update(list, :description => "Presidents of the United States of America") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/lists/update.json with body 'description=Presidents+of+the+United+States+of+America&list_id=12345678&owner_id=7505382' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="40c66054c746713b52ca23cfe56983c8", oauth_signature="7njH7rGrbB3kYO3lYCkmDcxWTtw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents+of+the+United+States+of+America", "list_id"=>"12345678", "owner_id"=>"7505382"}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="40c66054c746713b52ca23cfe56983c8", oauth_signature="7njH7rGrbB3kYO3lYCkmDcxWTtw%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137897", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/lists/update.json"). | |
with(:body => {"description"=>"Presidents of the United States of America", "list_id"=>"12345678", "owner_id"=>"7505382"}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/lists.rb:519:in `list_from_response' | |
# ./lib/twitter/api/lists.rb:406:in `list_update' | |
# ./spec/twitter/api/lists_spec.rb:633:in `block (4 levels) in <top (required)>' | |
12) Twitter::API::Tweets#tweet requests the correct resource | |
Failure/Error: @client.update("The problem with your code is that it's doing exactly what you told it to do.") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/statuses/update.json with body 'status=The+problem+with+your+code+is+that+it%27s+doing+exactly+what+you+told+it+to+do.' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="2fefb45a579bb275051ab9ca3a5e2daf", oauth_signature="w7gm4rSiUJL%2BgN8hGhY6eiC2Sbc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/statuses/update.json"). | |
with(:body => {"status"=>"The+problem+with+your+code+is+that+it's+doing+exactly+what+you+told+it+to+do."}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="2fefb45a579bb275051ab9ca3a5e2daf", oauth_signature="w7gm4rSiUJL%2BgN8hGhY6eiC2Sbc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/statuses/update.json"). | |
with(:body => {"status"=>"The problem with your code is that it's doing exactly what you told it to do."}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/tweets.rb:129:in `update' | |
# ./spec/twitter/api/tweets_spec.rb:109:in `block (3 levels) in <top (required)>' | |
13) Twitter::API::Tweets#tweet returns a Tweet | |
Failure/Error: tweet = @client.update("The problem with your code is that it's doing exactly what you told it to do.") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: POST https://api.twitter.com/1.1/statuses/update.json with body 'status=The+problem+with+your+code+is+that+it%27s+doing+exactly+what+you+told+it+to+do.' with headers {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="f6c2c15825236916d1825ec91d2783c8", oauth_signature="K8x5pSJJ9bOw4hfPxHoMMO87LJs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:post, "https://api.twitter.com/1.1/statuses/update.json"). | |
with(:body => {"status"=>"The+problem+with+your+code+is+that+it's+doing+exactly+what+you+told+it+to+do."}, | |
:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth oauth_nonce="f6c2c15825236916d1825ec91d2783c8", oauth_signature="K8x5pSJJ9bOw4hfPxHoMMO87LJs%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:post, "https://api.twitter.com/1.1/statuses/update.json"). | |
with(:body => {"status"=>"The problem with your code is that it's doing exactly what you told it to do."}) | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:70:in `post' | |
# ./lib/twitter/api/utils.rb:82:in `object_from_response' | |
# ./lib/twitter/api/tweets.rb:129:in `update' | |
# ./spec/twitter/api/tweets_spec.rb:113:in `block (3 levels) in <top (required)>' | |
14) Twitter::API::Users#user_search requests the correct resource | |
Failure/Error: @client.user_search("Erik Michaels-Ober") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/users/search.json?q=Erik%2BMichaels-Ober with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="5857a482e9f0812989a57c68aedfa1be", oauth_signature="QSBkEVIUS%2Bi%2FXBVehljpHlS9QWQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:get, "https://api.twitter.com/1.1/users/search.json?q=Erik%2BMichaels-Ober"). | |
with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="5857a482e9f0812989a57c68aedfa1be", oauth_signature="QSBkEVIUS%2Bi%2FXBVehljpHlS9QWQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:get, "https://api.twitter.com/1.1/users/search.json?q=Erik%20Michaels-Ober") | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:64:in `get' | |
# ./lib/twitter/api/utils.rb:51:in `objects_from_response' | |
# ./lib/twitter/api/users.rb:329:in `user_search' | |
# ./spec/twitter/api/users_spec.rb:519:in `block (3 levels) in <top (required)>' | |
15) Twitter::API::Users#user_search returns an array of user search results | |
Failure/Error: user_search = @client.user_search("Erik Michaels-Ober") | |
WebMock::NetConnectNotAllowedError: | |
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/users/search.json?q=Erik%2BMichaels-Ober with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="98a02c53e9d3119b18add7dd2be27ebc", oauth_signature="IvAkHP%2BHm5UYfXW6qqDeYj8AyP8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'} | |
You can stub this request with the following snippet: | |
stub_request(:get, "https://api.twitter.com/1.1/users/search.json?q=Erik%2BMichaels-Ober"). | |
with(:headers => {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_nonce="98a02c53e9d3119b18add7dd2be27ebc", oauth_signature="IvAkHP%2BHm5UYfXW6qqDeYj8AyP8%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1362137898", oauth_version="1.0"', 'User-Agent'=>'Twitter Ruby Gem 4.5.0'}). | |
to_return(:status => 200, :body => "", :headers => {}) | |
registered request stubs: | |
stub_request(:get, "https://api.twitter.com/1.1/users/search.json?q=Erik%20Michaels-Ober") | |
============================================================ | |
# ./lib/twitter/request/multipart_with_file.rb:14:in `call' | |
# ./lib/twitter/client.rb:81:in `request' | |
# ./lib/twitter/client.rb:64:in `get' | |
# ./lib/twitter/api/utils.rb:51:in `objects_from_response' | |
# ./lib/twitter/api/users.rb:329:in `user_search' | |
# ./spec/twitter/api/users_spec.rb:523:in `block (3 levels) in <top (required)>' | |
Finished in 2.79 seconds | |
758 examples, 15 failures | |
Failed examples: | |
rspec ./spec/twitter/api/direct_messages_spec.rb:109 # Twitter::API::DirectMessages#direct_message_create requests the correct resource | |
rspec ./spec/twitter/api/direct_messages_spec.rb:113 # Twitter::API::DirectMessages#direct_message_create returns the sent message | |
rspec ./spec/twitter/api/geo_spec.rb:57 # Twitter::API::PlacesAndGeo#similar_places requests the correct resource | |
rspec ./spec/twitter/api/geo_spec.rb:61 # Twitter::API::PlacesAndGeo#similar_places returns similar places | |
rspec ./spec/twitter/api/geo_spec.rb:72 # Twitter::API::PlacesAndGeo#place_create requests the correct resource | |
rspec ./spec/twitter/api/geo_spec.rb:76 # Twitter::API::PlacesAndGeo#place_create returns a place | |
rspec ./spec/twitter/api/lists_spec.rb:598 # Twitter::API::Lists#list_update with a screen name passed requests the correct resource | |
rspec ./spec/twitter/api/lists_spec.rb:602 # Twitter::API::Lists#list_update with a screen name passed returns the updated list | |
rspec ./spec/twitter/api/lists_spec.rb:613 # Twitter::API::Lists#list_update without a screen name passed requests the correct resource | |
rspec ./spec/twitter/api/lists_spec.rb:622 # Twitter::API::Lists#list_update with a list ID passed requests the correct resource | |
rspec ./spec/twitter/api/lists_spec.rb:631 # Twitter::API::Lists#list_update with a list object passed requests the correct resource | |
rspec ./spec/twitter/api/tweets_spec.rb:108 # Twitter::API::Tweets#tweet requests the correct resource | |
rspec ./spec/twitter/api/tweets_spec.rb:112 # Twitter::API::Tweets#tweet returns a Tweet | |
rspec ./spec/twitter/api/users_spec.rb:518 # Twitter::API::Users#user_search requests the correct resource | |
rspec ./spec/twitter/api/users_spec.rb:522 # Twitter::API::Users#user_search returns an array of user search results | |
Coverage report generated for RSpec to /Users/sferik/Projects/Ruby/smeg/twitter/coverage. 5349 / 5371 LOC (99.59%) covered. | |
[Coveralls] Outside the Travis environment, not sending data. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment