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

16 lines (11 sloc) 0.317 kb
require 'spec_helper'
describe["_.select"] = function()
before = function()
input = { 1,2,3 }
result = _.select(input, function(i) return i>2 end)
end
it["should return an array with only elements that do pass the truth function"] = function()
expect(result).should_equal {3}
end
end
spec:report(true)
Jump to Line
Something went wrong with that request. Please try again.