From ba5bd3f866f43a3de30472074171de2b068adf6b Mon Sep 17 00:00:00 2001 From: Tom Crayford Date: Wed, 14 Jul 2010 23:46:28 +0800 Subject: [PATCH] Jasmine.createSpy() throws a reference error, jasmine.createSpy() does not. --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 6376d91..babe499 100644 --- a/README.markdown +++ b/README.markdown @@ -296,7 +296,7 @@ Here are a few examples: }); it('should spy on Klass#methodWithCallback') { - var callback = Jasmine.createSpy(); + var callback = jasmine.createSpy(); Klass.methodWithCallback(callback); expect(callback).toHaveBeenCalledWith('foo'); @@ -316,7 +316,7 @@ Spies can be very useful for testing AJAX or other asynchronous behaviors that t it('should test async call') { spyOn(Klass, 'asyncMethod'); - var callback = Jasmine.createSpy(); + var callback = jasmine.createSpy(); Klass.asyncMethod(callback); expect(callback).not.toHaveBeenCalled();