forked from floere/phony
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start investigating floere#136, which is probably a theoretically har…
…d issue.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'spec_helper' | ||
|
||
describe 'Issues' do | ||
|
||
describe '#136' do | ||
|
||
it 'is correct for country 39' do | ||
Phony.normalize('+39 393 0000000').should == '393930000000' | ||
end | ||
|
||
it 'is correct for country 46' do | ||
Phony.normalize('+46 (0)46 222 0000').should == '46462220000' | ||
end | ||
|
||
end | ||
|
||
end |