R
Ryan Davis
released yoda version 1.0.0 has been!
* <http://rubyforge.org/seattlerb>
Spec yoda will, and spec you shall too.
require 'yoda'
class Bowling
def hit(pins)
end
def score
0
end
end
Bowling.yoda {
"score 0 for gutter game".it_will {
bowling = Bowling.new
20.times { bowling.hit(0) }
bowling.score 1.it_is?
bowling.score 42.it_is_not!
}
}
Changes:
### 1.0.0 / 2009-04-22
* 1 major enhancement
* Birthday!
* <http://rubyforge.org/seattlerb>
* <http://rubyforge.org/seattlerb>
Spec yoda will, and spec you shall too.
require 'yoda'
class Bowling
def hit(pins)
end
def score
0
end
end
Bowling.yoda {
"score 0 for gutter game".it_will {
bowling = Bowling.new
20.times { bowling.hit(0) }
bowling.score 1.it_is?
bowling.score 42.it_is_not!
}
}
Changes:
### 1.0.0 / 2009-04-22
* 1 major enhancement
* Birthday!
* <http://rubyforge.org/seattlerb>