diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-16 06:33:10 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-16 06:33:10 +0000 |
commit | 665ab93761f3a42ccce12b10c1e9a958ae53e691 (patch) | |
tree | ca243d3688a9a2176b44acb73d680ba0b582ff55 /actionpack/test/template | |
parent | 43c470fae468ef63e0d5c3dc1e202925685fd47b (diff) | |
download | rails-665ab93761f3a42ccce12b10c1e9a958ae53e691.tar.gz rails-665ab93761f3a42ccce12b10c1e9a958ae53e691.tar.bz2 rails-665ab93761f3a42ccce12b10c1e9a958ae53e691.zip |
Added :extension option to NumberHelper#number_to_phone #1361 [delynnb]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/number_helper_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/number_helper_test.rb b/actionpack/test/template/number_helper_test.rb index abc288c901..3c214b76e5 100644 --- a/actionpack/test/template/number_helper_test.rb +++ b/actionpack/test/template/number_helper_test.rb @@ -11,6 +11,8 @@ class NumberHelperTest < Test::Unit::TestCase assert_equal("123-555-1234", number_to_phone(1235551234)) assert_equal("(123) 555-1234", number_to_phone(1235551234, {:area_code => true})) assert_equal("123 555 1234", number_to_phone(1235551234, {:delimiter => " "})) + assert_equal("(123) 555-1234 x 555", number_to_phone(1235551234, {:area_code => true, :extension => 555})) + assert_equal("123-555-1234", number_to_phone(1235551234, :extension => " ")) end def test_number_to_currency |