Skip to content

Commit

Permalink
Adding alfred? method
Browse files Browse the repository at this point in the history
  • Loading branch information
devn committed May 20, 2011
1 parent b3268e4 commit 1bcb10d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core_ext/kernel.rb
Expand Up @@ -2,4 +2,8 @@ module Kernel
def sherry?
"Rather."
end

def alfred?
"Yes, m'lord?"
end
end
6 changes: 6 additions & 0 deletions spec/sherry_spec.rb
Expand Up @@ -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

0 comments on commit 1bcb10d

Please sign in to comment.