tests/ruby/ifsc_spec.rb in ifsc-1.4.3 vs tests/ruby/ifsc_spec.rb in ifsc-1.4.4
- old
+ new
@@ -71,9 +71,16 @@
end
it 'should return the correct sublet bank name' do
expect(described_class.bank_name_for('ALLA0AU1002')).to eq 'Allahabad Up Gramin Bank'
end
+
+ it 'should return the correct sublet bank name for custom sublets' do
+ expect(described_class.bank_name_for('VIJB0SSB001')).to eq 'Shimsha Sahakara Bank Niyamitha'
+ expect(described_class.bank_name_for('KSCB0006001')).to eq 'Tumkur District Central Bank'
+ expect(described_class.bank_name_for('WBSC0KPCB01')).to eq 'Kolkata Police Co-operative Bank'
+ expect(described_class.bank_name_for('YESB0ADB002')).to eq 'Amravati District Central Co-operative Bank'
+ end
end
describe '#valid?' do
it 'should validate regular numeric branch codes' do
expect(described_class.valid?('KKBK0000261')).to eq true