74. describe Array, quot;with some entriesquot; do
before(:each) do
@array = %w(A B C)
end
it quot;should not be nilquot; do
@array.should_not be_nil
end
it quot;should last element is 'C'quot; do
@array.last.should == 'C'
end
end
82. The Bowling Game Kata
by Robert C.Martin(Uncle Bob)
Bowling Game Kata
Object Mentor, Inc.
www.objectmentor.com
blog.objectmentor.com
fitnesse.org www.junit.org
Copyright 2005 by Object Mentor, Inc
All copies must retain this page unchanged.
http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata