Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (17 sloc) 0.278 kB
8062283 @zenspider Added
zenspider authored
1 # bowling_spec.rb
2
3 require 'yoda'
4
5 class Bowling
6 def hit(pins)
7 end
8
9 def score
10 0
11 end
12 end
13
14 Bowling.yoda {
15 "score 0 for gutter game".it_will {
16 bowling = Bowling.new
17 20.times { bowling.hit(0) }
18
ba5c86c @zenspider - Fixed example so it won't fail. Tweak for failure example.
zenspider authored
19 bowling.score 0.it_is?
8062283 @zenspider Added
zenspider authored
20 bowling.score 42.it_is_not!
21 }
22 }
Something went wrong with that request. Please try again.