spec/sjekksum/luhn_spec.rb in sjekksum-0.0.2 vs spec/sjekksum/luhn_spec.rb in sjekksum-0.0.3

- old
+ new

@@ -2,21 +2,25 @@ require "shared_implementation" describe Sjekksum::Luhn do success_spec_matrix = [ - [ 1, 8 ], - [ 20, 8 ], - [ 300, 4 ], - [ 4000, 6 ], - [ 55555, 7 ], - [ 424242, 6 ], - [ 7992739871, 3 ], + [ 1, 8 ], + [ 20, 8 ], + [ 300, 4 ], + [ 4000, 6 ], + [ 55555, 7 ], + [ 424242, 6 ], + [ 7992739871, 3 ], + [ "7992739871", 3 ], + [ "799.273-98 71", 3 ] ] fail_spec_matrix = [ - [ 1, 1 ], - [ 7992739871, 9 ] + [ 1, 1 ], + [ 7992739871, 9 ], + [ "7992739871", 9 ], + [ "799.273-98 71", 9 ] ] it_behaves_like "a checksum implementation:", success_spec_matrix, fail_spec_matrix end