Permalink
Browse files

+ egyptian splitting

  • Loading branch information...
1 parent a4db5e8 commit 332d1bde991984bc18d8fa3f3d3a3cf75f87fd6c @floere committed Nov 19, 2010
Showing with 4 additions and 1 deletion.
  1. +1 −1 lib/phony/countries/all_other.rb
  2. +3 −0 spec/lib/phony_spec.rb
@@ -39,7 +39,7 @@ def self.mapping
),
},
2 => {
- '20' => fixed(2), # Egypt
+ '20' => Countries::Egypt,
'27' => fixed(2, # South Africa
:local_format => [3, 4]
),
View
@@ -8,6 +8,9 @@
it "should handle austrian numbers" do
Phony.split('43198110').should == ['43', '1', '98110']
end
+ it "should handle egyptian numbers" do
+ Phony.split('20233453756').should == ['20', '2', '33453756']
+ end
it "should handle french numbers" do
Phony.split('33112345678').should == ['33', '1', '12','34','56','78']
end

0 comments on commit 332d1bd

Please sign in to comment.