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-2.0.38 tests/ruby/validate_spec.rb
ifsc-2.0.37 tests/ruby/validate_spec.rb
ifsc-2.0.36 tests/ruby/validate_spec.rb
ifsc-2.0.35 tests/ruby/validate_spec.rb
ifsc-2.0.34 tests/ruby/validate_spec.rb
ifsc-2.0.33 tests/ruby/validate_spec.rb
ifsc-2.0.32 tests/ruby/validate_spec.rb
ifsc-2.0.31 tests/ruby/validate_spec.rb
ifsc-2.0.30 tests/ruby/validate_spec.rb
ifsc-2.0.29 tests/ruby/validate_spec.rb
ifsc-2.0.28 tests/ruby/validate_spec.rb
ifsc-2.0.27 tests/ruby/validate_spec.rb
ifsc-2.0.25 tests/ruby/validate_spec.rb
ifsc-2.0.24 tests/ruby/validate_spec.rb
ifsc-2.0.23 tests/ruby/validate_spec.rb
ifsc-2.0.22 tests/ruby/validate_spec.rb
ifsc-2.0.21 tests/ruby/validate_spec.rb
ifsc-2.0.20 tests/ruby/validate_spec.rb
ifsc-2.0.19 tests/ruby/validate_spec.rb
ifsc-2.0.18 tests/ruby/validate_spec.rb