test/facebook/test_error.rb in rest-more-1.0.2 vs test/facebook/test_error.rb in rest-more-2.0.0
- old
+ new
@@ -55,11 +55,11 @@
should '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 = RC::Facebook.new(:cache => {},
+ :error_handler => lambda{|env|env})
rg.get('me'); rg.get('me')
rg.cache.values.should.eq []
end
end