Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1bb487f5a0
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (18 sloc) 0.568 kb
require 'spec_helper'
describe["_.join"] = function()
describe["when not specifying a separator"] = function()
it["should return a string with each string concatenated"] = function()
input = { 'c','a','t' }
result = _.join(input)
expect(result).should_be('cat')
end
end
describe["when specifying a separator"] = function()
it["should return a string with each string concatenated with specified separator"] = function()
input = { 'c','a','t' }
result = _.join(input, ",")
expect(result).should_be('c,a,t')
end
end
end
spec:report(true)
Jump to Line
Something went wrong with that request. Please try again.