Sha256: 78b45526c73f1a77ec21b43d2ed259957aa330eba52b436ef6c81003a6eef7fc
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
# encoding: utf-8 require 'spec_helper' class Sicoob < BoletoBancario::Sicoob def self.valor_documento_tamanho_maximo 456.50 # Default 99999999.99 end def self.carteiras_suportadas %w[1] # Default %w[1 9] end end describe Sicoob do describe "on validations" do it { should have_valid(:valor_documento).when(99, 99.99, 25) } it { should_not have_valid(:valor_documento).when(456.51, 1000) } it { should have_valid(:carteira).when(1) } it { should_not have_valid(:carteira).when(9) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boleto_bancario-0.0.2 | spec/inheritance/sicoob_spec.rb |