1
require File.dirname(__FILE__) + '/spec_helper'
4
# Based on http://glu.ttono.us/articles/2006/12/19/tormenting-your-tests-with-heckle
8
# spec greeter_spec.rb --heckle Greeter
11
def initialize(person = nil)
16
@person.nil? ? "Hi there!" : "Hi #{@person}!"
21
it "should say Hi to person" do
22
greeter = Greeter.new("Kevin")
23
greeter.greet.should == "Hi Kevin!"
26
it "should say Hi to nobody" do
28
# Uncomment the next line to make Heckle happy
29
#greeter.greet.should == "Hi there!"