
          });
          ajax.addEventListener('iron-ajax-request', requestSpy);

          var request = ajax.generateRequest();

          return request.completes.catch(function(request) {
            expect(request.aborted).to.be.true;
            promiseSpy();
          }).then(function() {
            expect(promiseSpy).to.be.calledOnce;
            expect(requestSpy).not.to.be.called;
          });
        });

        test('ability to modify the request options', function(done) {
          ajax.addE