Sha256: 56a9bd5dcb4dd258951d3b5f2195ce904970d80507e7b3af646bf9c91c39494f
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
require "spec_helper" describe Jan::Validator do describe ".validate" do context "valid codes" do valid_codes.each do |code| it "#{code} should be valid" do actual = Jan::Validator.validate(code) expect(actual).to be true end end end context "invalid codes" do invalid_codes.each do |code| it "#{code} should be invalid" do actual = Jan::Validator.validate(code) expect(actual).to be false end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jan-0.0.1 | spec/jan/validator_spec.rb |