tests/ruby/ifsc_spec.rb in ifsc-1.2.3 vs tests/ruby/ifsc_spec.rb in ifsc-1.3.0

- old
+ new

@@ -1,6 +1,7 @@ require 'ifsc' +require 'bank' describe Razorpay::IFSC::IFSC do let(:mocked_response) do { 'BANK' => 'Kotak Mahindra Bank', @@ -104,7 +105,13 @@ it 'should raise an error when validations fail' do expect { described_class.validate!(dummy_code) }.to raise_error(Razorpay::IFSC::InvalidCodeError) end end end + end +end + +describe Razorpay::IFSC::Bank do + it 'should define the relevant constants' do + expect(described_class::PUNB).to eq :PUNB end end