Sha256: a7c2d33fd6d42f3e58c37d611273cd98ec7e3cfea9d91fa731991f763c08971d
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
require_relative 'test_helper' describe CreditCardValidations::Factory do it "should generate random brand" do number = CreditCardValidations::Factory.random CreditCardValidations::Detector.new(number).valid?.must_equal true end CreditCardValidations::Detector.brands.keys.sort.each do |key| describe "#{key}" do it "should generate valid #{key}" do number = CreditCardValidations::Factory.random(key) CreditCardValidations::Detector.new(number).valid?(key).must_equal true end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
credit_card_validations-2.0.2 | spec/factory_spec.rb |
credit_card_validations-2.0.1 | spec/factory_spec.rb |
credit_card_validations-2.0.0 | spec/factory_spec.rb |