Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (52 sloc) 1.803 kb
8062283 @zenspider Added
zenspider authored
1 = yoda
2
3 * http://rubyforge.org/seattlerb
4
5 == DESCRIPTION:
6
7 Spec yoda will, and spec you shall too.
8
9 == FAQ:
10
11 Q: Why are there no _____?
12 A: Use the force.
13
e4e85e6 @zenspider fixed
zenspider authored
14 Patches... mmmm... yes.
8062283 @zenspider Added
zenspider authored
15
16 Q: Where is the runner script?
17 A: ruby
18
19 == SYNOPSIS:
20
21 class Bowling
22 def hit(pins)
23 end
24
25 def score
26 0
27 end
28 end
29
30 require 'yoda'
31
32 Bowling.yoda {
33 "score 0 for gutter game".it_will {
34 bowling = Bowling.new
35 20.times { bowling.hit(0) }
36
37 bowling.score 0.it_is?
38 bowling.score 42.it_is_not!
39 }
40 }
41
42 == REQUIREMENTS:
43
44 * rubygems
45 * hoe (development)
46 * midichlorians
47
48 == INSTALL:
49
50 * sudo gem install spec_yoda_will
51
52 == LICENSE:
53
54 (The MIT License)
55
56 Copyright (c) 2009 Ryan Davis, Aaron Patterson, seattle.rb
57
58 Permission is hereby granted, free of charge, to any person obtaining
59 a copy of this software and associated documentation files (the
60 'Software'), to deal in the Software without restriction, including
61 without limitation the rights to use, copy, modify, merge, publish,
62 distribute, sublicense, and/or sell copies of the Software, and to
63 permit persons to whom the Software is furnished to do so, subject to
64 the following conditions:
65
66 The above copyright notice and this permission notice shall be
67 included in all copies or substantial portions of the Software.
68
69 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
70 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
71 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
72 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
73 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
74 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
75 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.