Sha256: d17648e1f430362cdb417c0b8451ea50ecf18199c72b6090c6ae76a383589450
Contents?: true
Size: 923 Bytes
Versions: 7
Compression:
Stored size: 923 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2010 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== /*global module test equals context */ var context = null; module("SC.RenderContext#join", { setup: function() { context = SC.RenderContext().push("line1", "line2") ; }, teardown: function() { context = null; } }); test("it should return joined lines with no separator string by default", function() { equals(context.join(), '<div>line1line2</div>'); }); test("it should return joined lines with separator string if passed", function() { equals(context.join(","), "<div>,line1,line2,</div>") ; });
Version data entries
7 entries across 7 versions & 2 rubygems