Sha256: 8ed0586d817e0ab2d87d9fa770d219d83a5086919eb55a0ca42ae54a74004152
Contents?: true
Size: 1007 Bytes
Versions: 5
Compression:
Stored size: 1007 Bytes
Contents
require 'spec_helper' describe Absa::H2h::Eft::RejectionCode do it "should provide a list of eft rejection reasons" do list = Absa::H2h::Eft::RejectionCode.reasons list.length.should == 52 list.each do |code, reason| code.is_a?(String).should be_truthy reason.is_a?(String).should be_truthy end end it "should retrieve a rejection reason for a given code" do reason = Absa::H2h::Eft::RejectionCode.reason_for_code("2") reason.should == "NOT PROVIDED FOR" end it "should provide a list of eft rejection qualifiers" do list = Absa::H2h::Eft::RejectionCode.qualifiers list.length.should == 267 list.each do |code, qualifier| code.is_a?(String).should be_truthy qualifier.is_a?(String).should be_truthy end end it "should retrieve a rejection qualifier for a given code" do reason = Absa::H2h::Eft::RejectionCode.qualifier_for_code("2") reason.should == "COURT ORDER HOLD ON ACCOUNT" end end
Version data entries
5 entries across 5 versions & 1 rubygems