Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 497 Bytes
FancySpec describe: Range with: {
it: "has the correct amount of elements" with: 'size when: {
Range new: 1 to: 10 . to_a size is: 10
(1..10) to_a size is: 10
("a".."z") to_a size is: 26
}
it: "has a working literal syntax" when: {
(1..10) is: (Range new: 1 to: 10)
}
it: "returns a string representation" with: ['inspect, 'to_s] when: {
(1..10) inspect is: "(1..10)"
(100..1000) tap: @{
inspect is: "(100..1000)"
to_s is: "(100..1000)"
}
}
}
Something went wrong with that request. Please try again.