Sha256: 55b41ad73864821d99c7defba40eb473e38fb147e36f5dca629d8ff68f58a8df
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require 'spec_helper' describe 'Check Bin Numbers' do let(:invalid_numbers) { %w(24234234 4534 342341 545345) } let(:valid_numbers) { %w(444677 409084 413252) } it 'should be valid' do valid_numbers.each { |bin_id| BinNumber.get_bank(bin_id).nil?.should be_false } end it 'should be invalid' do invalid_numbers.each { |bin_id| BinNumber.get_bank(bin_id).nil?.should be_true } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bin_checker-0.2.0 | spec/bin_number_spec.rb |
bin_checker-0.1.0 | spec/bin_number_spec.rb |