Skip to content

Commit

Permalink
Fix regex and add magic string to pass rubocop check (faker-ruby#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakrzus authored and vbrazo committed Oct 22, 2018
1 parent 06c2a42 commit 3df7c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_faker_phone_number.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require_relative 'test_helper'

class TestFakerPhone < Test::Unit::TestCase
def setup
@tester = Faker::PhoneNumber
@phone_with_country_code_regex = /\A\+[\s|\d|\-|\(|\)|x|\.]*\z/
@phone_with_country_code_regex = /\A\+(\s|\d|\-|\(|\)|x|\.)*\z/
end

def test_country_code
Expand Down

0 comments on commit 3df7c41

Please sign in to comment.