3 # Based on http://glu.ttono.us/articles/2006/12/19/tormenting-your-tests-with-heckle
7 # spec greeter_spec.rb --heckle Greeter
10 def initialize(person = nil)
15 @person.nil? ? "Hi there!" : "Hi #{@person}!"
20 it "should say Hi to person" do
21 greeter = Greeter.new("Kevin")
22 greeter.greet.should == "Hi Kevin!"
25 it "should say Hi to nobody" do
27 # Uncomment the next line to make Heckle happy
28 #greeter.greet.should == "Hi there!"