Sha256: a9c154da5561a1fad9eec8aea5c083346f94a6b60d0f238e3c000a0e0464c1bd
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
require 'spec_helper' describe PolishValidators::NipValidator do describe '.valid?' do context 'with valid number' do it 'return true' do nip = PolishValidators::NipValidator.new(1234563218) expect(nip).to be_valid end end context 'with invalid number' do it 'return false' do nip = PolishValidators::NipValidator.new(1234567890) expect(nip).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/nip_validator_spec.rb |