Sha256: 7329a9004c77d39b2f24622ed70f551dbfc60492bcdc995f5217fcd776bca560

Contents?: true

Size: 331 Bytes

Versions: 88

Compression:

Stored size: 331 Bytes

Contents

require 'ifsc'

describe Razorpay::IFSC::IFSC do
  tests = JSON.parse File.read 'tests/validator_asserts.json'

  tests.each do |test_name, test_cases|
    it  "should #{test_name}" do
      test_cases.each do |ifsc, expected_value|
        expect(Razorpay::IFSC::IFSC.valid? ifsc).to eq expected_value
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
ifsc-1.0.14 tests/ruby/validate_spec.rb
ifsc-1.0.11 tests/ruby/validate_spec.rb
ifsc-1.0.10 tests/ruby/validate_spec.rb
ifsc-1.0.9 tests/ruby/validate_spec.rb
ifsc-1.0.8 tests/ruby/validate_spec.rb
ifsc-1.0.7 tests/ruby/validate_spec.rb
ifsc-1.0.6 tests/ruby/validate_spec.rb
ifsc-0.0.1 tests/ruby/validate_spec.rb