Sha256: 3a08a8b7b5195453b7be8052d8712b0d288ab7ca656790eed5770cd8bd66c8ca
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 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.0 | spec/regon_validator_spec.rb |