Sha256: 6927d2f93969569a00950360636dd2b305277050e2514a5ac49f018281189502
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe PolishValidators::RegonValidator do describe '.valid?' do context 'with valid number' do it 'return true' do regon = PolishValidators::RegonValidator.new(123456785) expect(regon).to be_valid regon = PolishValidators::RegonValidator.new(12345678512347) expect(regon).to be_valid end end context 'with invalid number' do it 'return false' do regon = PolishValidators::RegonValidator.new(123456786) expect(regon).to_not be_valid regon = PolishValidators::RegonValidator.new(12345678512346) expect(regon).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/regon_validator_spec.rb |