Permalink
Browse files

fixed shameful bug

  • Loading branch information...
1 parent 40abe50 commit 5ebd690ec354545285543e5396bcabc2bac957da Tomasz Mazur committed Mar 23, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/verbal/english/numbers.rb
  2. +1 −0 spec/unit/english/numbers_spec.rb
@@ -28,7 +28,7 @@ module Numbers
10 => 'ten',
20 => 'twenty',
30 => 'thirty',
- 40 => 'fourty',
+ 40 => 'forty',
50 => 'fifty',
60 => 'sixty',
70 => 'seventy',
@@ -5,6 +5,7 @@
Verbal::English::Numbers.to_words(9).should == "nine"
Verbal::English::Numbers.to_words(109).should == "one hundred nine"
Verbal::English::Numbers.to_words(34).should == "thirty-four"
+ Verbal::English::Numbers.to_words(44).should == "forty-four"
Verbal::English::Numbers.to_words(2_001).should == "two thousand and one"
Verbal::English::Numbers.to_words(1_134).should == "one thousand one hundred and thirty-four"
end

0 comments on commit 5ebd690

Please sign in to comment.