From 71c2f24fc64e8d38089ac9476d05e01baf448879 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 16 Nov 2010 17:02:04 -0800 Subject: remove extra toolbar directive and support multiple pre's in describe --- docs/spec/collectSpec.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'docs/spec/collectSpec.js') diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js index 6f82ec3d..4d398be3 100644 --- a/docs/spec/collectSpec.js +++ b/docs/spec/collectSpec.js @@ -185,7 +185,19 @@ describe('collect', function(){ describe('@description', function(){ it('should support pre blocks', function(){ TAG.description(doc, 'description', '
abc
'); - expect(doc.description).toEqual('
abc
'); + expect(doc.description). + toBe('
abc
'); + }); + + it('should support multiple pre blocks', function() { + TAG.description(doc, 'description', 'foo \n
abc
\n#bah\nfoo \n
cba
'); + expect(doc.description). + toBe('

foo

' + + '
abc
' + + '

bah

\n\n' + + '

foo

' + + '
cba
'); + }); }); -- cgit v1.2.3