Sha256: 9cc398988f2ef492035c987dc5028471fc3ba20e58f8cb3788c05939445d4ac5
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 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.0 | spec/nip_validator_spec.rb |