Skip to content

Commit

Permalink
Added initial version of Downcaser
Browse files Browse the repository at this point in the history
  • Loading branch information
ariejan committed Dec 8, 2009
1 parent 34c064c commit 472970b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "downcaser"
gem.summary = %Q{TODO: one-line summary of your gem}
gem.description = %Q{TODO: longer description of your gem}
gem.summary = %Q{Downcases strings}
gem.description = %Q{Downcases long strings}
gem.email = "ariejan@ariejan.net"
gem.homepage = "http://github.com/ariejan/downcaser"
gem.authors = ["Ariejan de Vroom"]
Expand Down
5 changes: 5 additions & 0 deletions lib/downcaser.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Downcaser
def self.downcase(the_string)
the_string.downcase
end
end
6 changes: 3 additions & 3 deletions spec/downcaser_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Downcaser" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
describe Downcaser do
it "should downcase strings" do
Downcaser.downcase("TeSt").should eql("test")
end
end

0 comments on commit 472970b

Please sign in to comment.