Sha256: 81a445fa7e00849afe92db406c20b2b6334741cb50f275a1cccb2109ec456a22
Contents?: true
Size: 692 Bytes
Versions: 9
Compression:
Stored size: 692 Bytes
Contents
describe "Bandeiras e Operacoes" do let(:_) { Cieloz::Bandeiras } it "recognizes mastercard secure code requires authentication" do res = _.operacao "mastercard_securecode" assert_equal :autorizar_somente_autenticada, res end it "recognizes verified by visa code requires authentication" do res = _.operacao "verified_by_visa" assert_equal :autorizar_somente_autenticada, res end it "recognizes supported products allows direct authorization" do _::ALL.each do |bandeira| res = _.operacao bandeira assert_equal :autorizacao_direta, res end end it "disallows unsupported products" do assert_nil _.operacao("anything else") end end
Version data entries
9 entries across 9 versions & 1 rubygems