Skip to content

Commit

Permalink
Add failing test for Github issue 180.
Browse files Browse the repository at this point in the history
  • Loading branch information
trueinviso committed Jan 31, 2019
1 parent 22d06c8 commit 6893214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/phony_rails_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ class NormalHome < ActiveRecord::Base

it 'should pass Github issue #180' do
phone = '5555555555'
phone = PhonyRails.normalize_number(phone, default_country_code: 'AU')
phone = PhonyRails.normalize_number(phone, default_country_code: 'AU', country_code: 'AU')
expect(phone).to eq('+615555555555')
phone = PhonyRails.normalize_number(phone, default_country_code: 'AU')
phone = PhonyRails.normalize_number(phone, default_country_code: 'AU', country_code: 'AU')
expect(phone).to eq('+615555555555')
end
end
Expand Down

0 comments on commit 6893214

Please sign in to comment.