Fix getFullName on spec.

- Fixes specFiltering on nested specs
This commit is contained in:
Davis W. Frank & Rajan Agaskar
2012-12-07 11:11:09 -08:00
parent 74f928fd54
commit c584f182ab
6 changed files with 36 additions and 30 deletions

View File

@@ -166,10 +166,8 @@ describe("Spec (real-ish unit tests)", function() {
});
it("can return its full name", function() {
//TODO: not convinced that a spec should provide this as part of its public interface, but adding temporarily
//until we fix the reporting
var spec = new jasmine.Spec({
fullNameFactory: function(passedVal) {
getSpecName: function(passedVal) {
expect(passedVal).toBe(spec);
return 'expected val';
}