 
 				it "will attempt to submit the form", ->
 					spyOn(submitter, 'submit')
-					reqwestResponse = mocks.simpleSuccessResponse
+					reqwestSpy.andCallFake((params)-> params.success(mocks.simpleSuccessResponse))
 					submitButton.click()
 					expect(submitter.submit).toHaveBeenCalledWith(form, 'simple')
 

		validator = FormValidator.create()
		manager = new FormManager(submitter, validator)

		reqwestCallback = "success"
		spyOn(callbacks, 'validateErrorHappened').andCallThrough()
		spyOn(callbacks, 'submitSuccessHappened').andCallThrough()
		spyOn(callbacks, 'submitErrorHappened').andCallThrough()
		manager.validatedWithErrors.add callbacks.validateErrorHappened
		manager.submittedWithSuccess.add callbacks.submitSuccessHappened
		manager.submittedWithError.add callbacks.submitErrorHappened
		spyOn(window, 'reqwest').andCallFake(reqwestSpy)

	describe '::create', ->


				describe "and submission is not successful", ->

					beforeEach ->
						reqwestSpy.andCallFake((params)-> params.error(mocks.errorXhr))
						submitButton.click()

					it "will call callbacks added to the submittedWithError", ->
						expect(callbacks.submitErrorHappened).toHaveBeenCalledWith(form, mocks.errorXhr)

					it "will re-enable the submit button", ->
						expect(submitButton.disabled).toBeFalsy()
