diff options
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 |