From 1bcb10d5b957575a804cbcd1b92daaeeeb9fe20a Mon Sep 17 00:00:00 2001 From: Devin Walters Date: Fri, 20 May 2011 16:37:37 -0400 Subject: [PATCH] Adding alfred? method --- lib/core_ext/kernel.rb | 4 ++++ spec/sherry_spec.rb | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/lib/core_ext/kernel.rb b/lib/core_ext/kernel.rb index 9642c1f..f0cad49 100644 --- a/lib/core_ext/kernel.rb +++ b/lib/core_ext/kernel.rb @@ -2,4 +2,8 @@ module Kernel def sherry? "Rather." end + + def alfred? + "Yes, m'lord?" + end end diff --git a/spec/sherry_spec.rb b/spec/sherry_spec.rb index 1a9cbee..8edf8a1 100644 --- a/spec/sherry_spec.rb +++ b/spec/sherry_spec.rb @@ -5,3 +5,9 @@ sherry?.should == 'Rather.' end end + +describe 'the help' do + it 'always replies courteously' do + alfred?.should == "Yes, m'lord?" + end +end