Skip to content
Browse files

Fixed test

  • Loading branch information...
1 parent 7c0f18a commit 7cc95407de5ab32c3e3e9c94230f7f58a36c5a06 @chKarner committed Jul 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 calculator.rb
View
2 calculator.rb
@@ -1,7 +1,7 @@
class Calculator
def add text
- 0
+ text == nil ? 0 : text.to_i
end
end

0 comments on commit 7cc9540

Please sign in to comment.
Something went wrong with that request. Please try again.