aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorrpheath <rpheath@gmail.com>2009-03-08 23:52:28 -0400
committerPratik Naik <pratiknaik@gmail.com>2009-03-09 12:53:44 +0000
commit1ab2ff58eddee8ac523624dd097424f9a760ad8b (patch)
tree0e23cec568020d67ba739f1dc900b2865b0b8067 /actionpack/test/template
parentfaf4ba6b79e56dde383a8761fb1f485fcd07c72b (diff)
downloadrails-1ab2ff58eddee8ac523624dd097424f9a760ad8b.tar.gz
rails-1ab2ff58eddee8ac523624dd097424f9a760ad8b.tar.bz2
rails-1ab2ff58eddee8ac523624dd097424f9a760ad8b.zip
Fixed number_to_phone to work with 7 digit numbers [#2176 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/number_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/number_helper_test.rb b/actionpack/test/template/number_helper_test.rb
index 9c9f54936c..29cb60fd73 100644
--- a/actionpack/test/template/number_helper_test.rb
+++ b/actionpack/test/template/number_helper_test.rb
@@ -4,6 +4,7 @@ class NumberHelperTest < ActionView::TestCase
tests ActionView::Helpers::NumberHelper
def test_number_to_phone
+ assert_equal("555-1234", number_to_phone(5551234))
assert_equal("800-555-1212", number_to_phone(8005551212))
assert_equal("(800) 555-1212", number_to_phone(8005551212, {:area_code => true}))
assert_equal("800 555 1212", number_to_phone(8005551212, {:delimiter => " "}))