From 1b6725ec2559c733ef827a9400df80b4507c129e Mon Sep 17 00:00:00 2001 From: Sheel Choksi Date: Mon, 4 Nov 2013 21:59:02 -0800 Subject: [PATCH] Updating Spec#getFullName spec to work in IE 8 Forgot that the pretty printer is not functional in IE 8, which subsequently brings down toHaveBeenCalledWith --- spec/core/SpecSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/core/SpecSpec.js b/spec/core/SpecSpec.js index 64e084af..d82aff05 100644 --- a/spec/core/SpecSpec.js +++ b/spec/core/SpecSpec.js @@ -215,7 +215,7 @@ describe("Spec", function() { }); expect(spec.getFullName()).toBe('expected val'); - expect(specNameSpy).toHaveBeenCalledWith(spec); + expect(specNameSpy.calls.mostRecent().args[0].id).toEqual(spec.id); }); describe("when a spec is marked pending during execution", function() {