Sha256: f8ac06b24cafd5b25ae64ca34a3c4c1ef2dcd81686539f6899a9182f4076e45a
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
require_relative '../../spec_helper' describe Credy::Check do describe '.luhn' do it 'returns true for correct data' do Credy::Check.luhn(49927398716).should be_true Credy::Check.luhn(1234567812345670).should be_true end it 'returns false for non correct data' do Credy::Check.luhn(49927398717).should be_false Credy::Check.luhn(1234567812345678).should be_false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
credy-0.1.1 | spec/lib/credy/check_spec.rb |