Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 26c35845e0
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.406 kb
FancySpec describe: Symbol with: {
it: "should be usable like a block for Enumerable methods" when: {
[1,2,3,4,5] map: 'squared .
should == [1,4,9,16,25]
["hello", "world"] map: 'upcase .
should == ["HELLO", "WORLD"]
[1,2,3,4,5] select: 'even? .
should == [2,4]
}
it: "should evaluate itself within the current scope" when: {
x = 10
'x eval should == x
}
}
Jump to Line
Something went wrong with that request. Please try again.