Sha256: be12ba84f009dc8cd74f30fd50f9e965f16f491dd6aaa3a94d19af4e10d059ef
Contents?: true
Size: 1.16 KB
Versions: 31
Compression:
Stored size: 1.16 KB
Contents
require 'ifsc' require 'bank' describe Razorpay::IFSC::Bank do it 'should define the relevant constants' do expect(described_class::PUNB).to eq :PUNB end it 'should return details from the bank code' do expect(described_class.get_details(:PUNB)).to eq(code: 'PUNB', type: 'PSB', upi: true, ifsc: 'PUNB0244200', micr: '110024001', bank_code: '024', iin: '508568', apbs: true, ach_credit: true, ach_debit: true, nach_debit: true) end it 'should match all constants defined in banknames.json' do JSON.parse(File.read('src/banknames.json')).keys.each do |c| expect(described_class::const_get(c)).to eq c.to_sym end end end
Version data entries
31 entries across 31 versions & 1 rubygems