Permalink
Browse files

Adding the_scoop

  • Loading branch information...
1 parent cf72375 commit 4c930fc77ec1b94f6b65027b76da67bfe1bee00f @steveklabnik committed Sep 2, 2010
Showing with 9 additions and 0 deletions.
  1. +3 −0 lib/extra/extra.rb
  2. +6 −0 spec/extraextra_spec.rb
View
@@ -58,6 +58,9 @@ def read_all_about_it user
).collect{|args| Extra.new args }
end
+
+ # aliasing a shorter name
+ alias :the_scoop :read_all_about_it
end
end
@@ -55,4 +55,10 @@
ex.to_s.should == extra.to_s
end
end
+
+ describe "#the_scoop" do
+ it "should exist" do
+ Extra::Extra.respond_to?(:the_scoop).should == true
+ end
+ end
end

0 comments on commit 4c930fc

Please sign in to comment.