diff --git a/spec/core/SpySpec.js b/spec/core/SpySpec.js index 18c6b762..2639aa98 100644 --- a/spec/core/SpySpec.js +++ b/spec/core/SpySpec.js @@ -183,7 +183,7 @@ describe('Spies', function () { var spy = env.createSpy('foo'); spy.withArgs('bar').and.returnValue(-1); - expect(function() { spy('baz', {qux: 42}); }).toThrowError('Spy \'foo\' receieved a call with arguments [ \'baz\', Object({ qux: 42 }) ] but all configured strategies specify other arguments.'); + expect(function() { spy('baz', {qux: 42}); }).toThrowError('Spy \'foo\' received a call with arguments [ \'baz\', Object({ qux: 42 }) ] but all configured strategies specify other arguments.'); }); }); }); diff --git a/src/core/Spy.js b/src/core/Spy.js index e6b40669..639d76f8 100644 --- a/src/core/Spy.js +++ b/src/core/Spy.js @@ -112,7 +112,7 @@ getJasmineRequireObj().Spy = function (j$) { if (!strategy) { if (argsStrategies.any() && !baseStrategy.isConfigured()) { - throw new Error('Spy \'' + strategyArgs.name + '\' receieved a call with arguments ' + j$.pp(Array.prototype.slice.call(args)) + ' but all configured strategies specify other arguments.'); + throw new Error('Spy \'' + strategyArgs.name + '\' received a call with arguments ' + j$.pp(Array.prototype.slice.call(args)) + ' but all configured strategies specify other arguments.'); } else { strategy = baseStrategy; }