test/facebook/test_error.rb in rest-more-3.2.0 vs test/facebook/test_error.rb in rest-more-3.3.0

- old
+ new

@@ -4,11 +4,11 @@ describe RC::Facebook::Error do after do WebMock.reset! end - should 'have the right ancestors' do + would 'have the right ancestors' do RC::Facebook::Error::AccessToken.should.lt RC::Facebook::Error RC::Facebook::Error::InvalidAccessToken.should.lt \ RC::Facebook::Error::AccessToken @@ -20,11 +20,11 @@ {RC::RESPONSE_BODY => hash, RC::REQUEST_PATH => '/' , RC::REQUEST_QUERY => {}} end - should 'parse right' do + would 'parse right' do %w[OAuthInvalidTokenException OAuthException].each{ |type| RC::Facebook::Error.call(error2env('error' => {'type' => type})). should.kind_of?(RC::Facebook::Error::InvalidAccessToken) } @@ -50,10 +50,10 @@ 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 - should 'nuke cache upon errors' do + 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})