From 4b80a10969656d8d493dbc82b9eb6c7511b2bac6 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Sat, 27 Feb 2010 12:00:35 -0500 Subject: [PATCH] Fix specs. --- spec/suites/MatchersSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/suites/MatchersSpec.js b/spec/suites/MatchersSpec.js index a2f8079..67295fb 100644 --- a/spec/suites/MatchersSpec.js +++ b/spec/suites/MatchersSpec.js @@ -596,7 +596,7 @@ describe("jasmine.Matchers", function() { it('should return false if it was not called', function() { var expected = match(TestClass.spyFunction); expect(expected.wasCalledWith('c', 'b', 'a')).toEqual(false); - var result = mockSpec.addMatcherResult.mostRecentCall.args[0]; + var result = lastResult(); expect(result.passed()).toEqual(false); expect(result.expected).toEqual(['c', 'b', 'a']); expect(result.actual.argsForCall).toEqual([]); @@ -652,7 +652,7 @@ describe("jasmine.Matchers", function() { TestClass.spyFunction('a', 'b', 'c'); var expected = match(TestClass.spyFunction); expect(expected.wasNotCalledWith('a', 'b', 'c')).toEqual(false); - var result = mockSpec.addMatcherResult.mostRecentCall.args[0]; + var result = lastResult(); expect(result.passed()).toEqual(false); expect(result.expected).toEqual(['a', 'b', 'c']); expect(result.actual.mostRecentCall.args).toEqual(['a', 'b', 'c']);