Sha256: 1ac09b66375f876911a26fd405710240c8a1274d2056d5b95978ee5d43955f3d
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
# -*- encoding : utf-8 -*- require 'minitest/autorun' require 'superpay' describe Superpay::Configuracao do before do Superpay.config do |config| config.ambiente = :teste config.estabelecimento = 1111111 config.usuario = 'ERNET' config.senha = 'ERNET' end end it "deveria configurar corretamente" do Superpay.config.ambiente_teste?.must_equal true Superpay.config.ambiente_producao?.must_equal false Superpay.config.estabelecimento.must_equal 1111111 Superpay.config.usuario.must_equal 'ERNET' Superpay.config.senha.must_equal 'ERNET' end it "deveria manter os dados configurados" do Superpay.config.ambiente_teste?.must_equal true Superpay.config.ambiente_producao?.must_equal false Superpay.config.estabelecimento.must_equal 1111111 Superpay.config.usuario.must_equal 'ERNET' Superpay.config.senha.must_equal 'ERNET' end it "deveria sobrecarregar os dados configurados" do Superpay.config do |config| config.ambiente = :producao config.estabelecimento = 222222 config.usuario = 'qw3' config.senha = 'qw31' end Superpay.config.ambiente_teste?.must_equal false Superpay.config.ambiente_producao?.must_equal true Superpay.config.estabelecimento.must_equal 222222 Superpay.config.usuario.must_equal 'qw3' Superpay.config.senha.must_equal 'qw31' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
superpay-1.0.2 | test/configuracao_test.rb |
superpay-1.0.1 | test/configuracao_test.rb |