Sha256: 3f00cfab2684a806956908e6a07094e902dd55dc8d918812d66b4809fa09887a
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
require 'spec_helper' describe PolishValidators::IbanValidator do describe '.valid?' do context 'with valid number' do it 'return true' do iban = PolishValidators::IbanValidator.new('PL61109010140000071219812874') expect(iban).to be_valid end end context 'with invalid number' do it 'return false' do iban = PolishValidators::IbanValidator.new('PL61109010140000071219812873') expect(iban).to_not be_valid end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polish_validators-1.0.1 | spec/iban_validator_spec.rb |