test/facebook/test_error.rb in rest-more-3.3.4 vs test/facebook/test_error.rb in rest-more-3.4.0
- old
+ new
@@ -49,17 +49,6 @@
error = RC::Facebook::Error.call(error2env(['not a hash']))
error.should.not.kind_of?(RC::Facebook::Error::AccessToken)
error.should .kind_of?(RC::Facebook::Error)
end
-
- would 'nuke cache upon errors' do
- stub_request(:get, 'https://graph.facebook.com/me').
- to_return(:body => '{"error":"wrong"}').times(2)
-
- rg = RC::Facebook.new(:cache => {},
- :error_handler => lambda{|env|env})
- rg.get('me'); rg.get('me')
- rg.wait
- rg.cache.values.should.eq []
- end
end