From ba0b12a6a6f3266597a7959eb91f03733c5ea556 Mon Sep 17 00:00:00 2001 From: John Mortlock Date: Mon, 19 Dec 2016 16:54:20 +1030 Subject: [PATCH] Update tests --- spec/sensitive_data/types/credit_card_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/sensitive_data/types/credit_card_spec.rb b/spec/sensitive_data/types/credit_card_spec.rb index 788237e..9ac2844 100644 --- a/spec/sensitive_data/types/credit_card_spec.rb +++ b/spec/sensitive_data/types/credit_card_spec.rb @@ -18,7 +18,7 @@ '422 222 222 2 222'], 'Dankort (PBS)' => ['5019 7170 1010 3742'], 'Switch/Solo (Paymentech)' => ['6331 1019 9999 0016'], - 'Unconventionally Typed' => ['3782 8224 6310 005'] + 'Unconventionally Typed' => ['3782 8224 6310 005', '4111111111111111'] } } let(:valid_cards) { example_cards.values.flatten } @@ -63,7 +63,7 @@ def validations(cards) context 'a value that contains valid credit card numbers in a longer numerical pattern' do let(:value) { '1234111 1111 1111 1111234' } - specify { expect(scan).to eq '4111 1111 1111 1111' } + specify { expect(scan).to eq ['4111 1111 1111 1111'] } end context 'a value that does not contain valid credit card numbers' do