Sha256: f219891ad79c46d1c2a06c5a89115113d38a58360e8e7f4ae3f838d9b6178aa4
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
# encoding: utf-8 require 'spec_helper' class Hsbc < BoletoBancario::Hsbc def self.valor_documento_tamanho_maximo 100 # Default 99999999.99 end def self.carteiras_suportadas %w[ABC] # Default %w[CNR] end end describe Hsbc do describe "on validations" do it { should have_valid(:valor_documento).when(99, 99.99, 25) } it { should_not have_valid(:valor_documento).when(100.01, 150) } it { should have_valid(:carteira).when('ABC') } it { should_not have_valid(:carteira).when('CNR', 14, 'CSB') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boleto_bancario-0.0.2 | spec/inheritance/hsbc_spec.rb |