br_boleto 1.2.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.markdown +278 -98
- data/br_boleto.gemspec +5 -3
- data/lib/br_boleto/active_model_base.rb +1 -1
- data/lib/br_boleto/association/have_conta.rb +109 -0
- data/lib/br_boleto/association/have_pagador.rb +38 -0
- data/lib/br_boleto/association/have_pagamentos.rb +44 -0
- data/lib/br_boleto/boleto/base.rb +50 -379
- data/lib/br_boleto/boleto/caixa.rb +28 -143
- data/lib/br_boleto/boleto/sicoob.rb +24 -144
- data/lib/br_boleto/conta/base.rb +288 -0
- data/lib/br_boleto/conta/caixa.rb +109 -0
- data/lib/br_boleto/conta/sicoob.rb +64 -0
- data/lib/br_boleto/helper/default_codes.rb +33 -0
- data/lib/br_boleto/helper/format_value.rb +1 -0
- data/lib/br_boleto/helper/number.rb +30 -0
- data/lib/br_boleto/pagador.rb +82 -0
- data/lib/br_boleto/remessa/base.rb +28 -50
- data/lib/br_boleto/remessa/cnab240/base.rb +22 -131
- data/lib/br_boleto/remessa/cnab240/caixa.rb +16 -62
- data/lib/br_boleto/remessa/cnab240/helper/header_arquivo.rb +7 -7
- data/lib/br_boleto/remessa/cnab240/helper/header_lote.rb +6 -6
- data/lib/br_boleto/remessa/cnab240/helper/segmento_p.rb +22 -22
- data/lib/br_boleto/remessa/cnab240/helper/segmento_q.rb +16 -16
- data/lib/br_boleto/remessa/cnab240/helper/segmento_r.rb +3 -3
- data/lib/br_boleto/remessa/cnab240/helper/segmento_s.rb +3 -3
- data/lib/br_boleto/remessa/cnab240/helper/trailer_arquivo.rb +3 -3
- data/lib/br_boleto/remessa/cnab240/helper/trailer_lote.rb +3 -3
- data/lib/br_boleto/remessa/cnab240/sicoob.rb +36 -73
- data/lib/br_boleto/remessa/cnab400/base.rb +95 -0
- data/lib/br_boleto/remessa/cnab400/helper/detalhe.rb +136 -0
- data/lib/br_boleto/remessa/cnab400/helper/header.rb +114 -0
- data/lib/br_boleto/remessa/cnab400/helper/trailer.rb +50 -0
- data/lib/br_boleto/remessa/cnab400/sicoob.rb +249 -0
- data/lib/br_boleto/remessa/lote.rb +1 -23
- data/lib/br_boleto/remessa/pagamento.rb +188 -51
- data/lib/br_boleto/retorno/base.rb +9 -0
- data/lib/br_boleto/retorno/cnab240/base.rb +2 -10
- data/lib/br_boleto/retorno/cnab400/base.rb +48 -0
- data/lib/br_boleto/retorno/cnab400/sicoob.rb +42 -0
- data/lib/br_boleto/retorno/pagamento.rb +12 -6
- data/lib/br_boleto/string_methods.rb +8 -2
- data/lib/br_boleto/validations.rb +19 -0
- data/lib/br_boleto/version.rb +3 -3
- data/lib/br_boleto.rb +38 -8
- data/lib/config/locales/br-boleto-en.yml +89 -0
- data/lib/config/locales/br-boleto-pt-BR.yml +89 -0
- data/test/br_boleto/association/have_conta_test.rb +319 -0
- data/test/br_boleto/association/have_pagador_test.rb +110 -0
- data/test/br_boleto/association/have_pagamentos_test.rb +113 -0
- data/test/br_boleto/boleto/base_test.rb +127 -201
- data/test/br_boleto/boleto/caixa_test.rb +58 -72
- data/test/br_boleto/boleto/sicoob_test.rb +88 -147
- data/test/br_boleto/conta/base_test.rb +490 -0
- data/test/br_boleto/conta/caixa_test.rb +154 -0
- data/test/br_boleto/conta/sicoob_test.rb +144 -0
- data/test/br_boleto/helper/number_test.rb +29 -0
- data/test/br_boleto/pagador_test.rb +158 -0
- data/test/br_boleto/remessa/base_test.rb +37 -62
- data/test/br_boleto/remessa/cnab240/base_test.rb +75 -95
- data/test/br_boleto/remessa/cnab240/caixa_test.rb +61 -96
- data/test/br_boleto/remessa/cnab240/helper/header_arquivo_test.rb +11 -11
- data/test/br_boleto/remessa/cnab240/helper/header_lote_test.rb +8 -8
- data/test/br_boleto/remessa/cnab240/helper/segmento_p_test.rb +17 -15
- data/test/br_boleto/remessa/cnab240/helper/segmento_q_test.rb +13 -13
- data/test/br_boleto/remessa/cnab240/helper/segmento_r_test.rb +2 -2
- data/test/br_boleto/remessa/cnab240/helper/segmento_s_test.rb +3 -3
- data/test/br_boleto/remessa/cnab240/helper/trailer_arquivo_test.rb +1 -1
- data/test/br_boleto/remessa/cnab240/helper/trailer_lote_test.rb +1 -1
- data/test/br_boleto/remessa/cnab240/sicoob_test.rb +136 -131
- data/test/br_boleto/remessa/cnab400/base_test.rb +263 -0
- data/test/br_boleto/remessa/cnab400/sicoob_test.rb +179 -0
- data/test/br_boleto/remessa/lote_test.rb +2 -41
- data/test/br_boleto/remessa/pagamento_test.rb +186 -188
- data/test/br_boleto/retorno/base_test.rb +0 -1
- data/test/br_boleto/retorno/cnab240/base_test.rb +12 -11
- data/test/br_boleto/retorno/cnab240/caixa_test.rb +11 -11
- data/test/br_boleto/retorno/cnab240/sicoob_test.rb +11 -11
- data/test/br_boleto/retorno/cnab400/sicoob_test.rb +227 -0
- data/test/br_boleto/retorno/pagamento_test.rb +6 -6
- data/test/factories/boleto/base.rb +9 -7
- data/test/factories/boleto/boleto_caixa.rb +2 -9
- data/test/factories/boleto/boleto_sicoob.rb +10 -8
- data/test/factories/conta/base.rb +10 -0
- data/test/factories/conta/caixa.rb +15 -0
- data/test/factories/conta/sicoob.rb +16 -0
- data/test/factories/pagador.rb +15 -0
- data/test/factories/remessa/base.rb +0 -6
- data/test/factories/remessa/cnab240/base.rb +0 -10
- data/test/factories/remessa/cnab240/caixa.rb +1 -6
- data/test/factories/remessa/cnab240/sicoob.rb +1 -10
- data/test/factories/remessa/cnab400/base.rb +8 -0
- data/test/factories/remessa/cnab400/sicoob.rb +8 -0
- data/test/factories/remessa/pagamento.rb +8 -7
- data/test/fixtures/remessa/cnab240/sicoob.rem +8 -0
- data/test/{files → fixtures}/retorno/cnab240/caixa.ret +0 -0
- data/test/{files → fixtures}/retorno/cnab240/padrao240.ret +0 -0
- data/test/fixtures/retorno/cnab400/sicoob.ret +7 -0
- data/test/inheritance/boleto_test.rb +4 -1
- data/test/inheritance/sicoob_test.rb +23 -7
- data/test/test_helper.rb +70 -0
- metadata +63 -6
@@ -6,12 +6,13 @@ FactoryGirl.define do
|
|
6
6
|
numero_documento "977897"
|
7
7
|
data_vencimento { Date.tomorrow }
|
8
8
|
valor_documento 100.123
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
pagador { FactoryGirl.build(:pagador) }
|
10
|
+
# documento_sacado "12345678901"
|
11
|
+
# nome_sacado "TESTE NOME DO SACADO"
|
12
|
+
# endereco_sacado "R. TESTE DO SACADO"
|
13
|
+
# cep_sacado "89888000"
|
14
|
+
# cidade_sacado "PIRÁPORA"
|
15
|
+
# uf_sacado "SC"
|
16
|
+
# bairro_sacado "Bairro"
|
16
17
|
end
|
17
18
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
75600000 233486451000130 0304060000000548430 EMPRESA EMITENTE SICOOB 106092016094352000011081000000000000000000000000000000000000000000000
|
2
|
+
75600011R0100040 2033486451000130 0304060000000548430 EMPRESA EMITENTE 000000110609201600000000
|
3
|
+
7560001300001P 010304060000000548430 000015780401014 102220000000001578040609201600000000001478900000 02N06092016107092016000000000000025000000000000000000000000000000000000000000000000000000 1000000090000000000
|
4
|
+
7560001300002Q 011000078793321112BENJAMIN FRANCISCO MARCOS VINICIUS FERNARUA PRINCIPAL S/N 881 CENTRO 79210972ANASTACIO MS0000000000000000 000
|
5
|
+
7560001300003R 01000000000000000000000000000000000000000000000000207092016000000000000200 0000000000000000 000000000000 0
|
6
|
+
7560001300004S 01101 01
|
7
|
+
75600015 00000600000100000000000014789000000000000000000000000000000000000000000000000000000000000000000000
|
8
|
+
75699999 000001000008000000
|
File without changes
|
File without changes
|
@@ -0,0 +1,7 @@
|
|
1
|
+
02RETORNO01COBRAN�A 30690000554780567329EMPRESA EMITENTE PROD. LTDA - 756 - BANCOOB S/A 0609160000676 000001
|
2
|
+
1022343374200010630690000567329000000 00000015759501000000DM 00000000000000000000 0106050916000000000157595 160916000000004000075630690010509160000189000000000000000000000000000000000000000000000000000000000000010000000000039000000000000000000000000000000000000000000000000000000010000000000000 0000000000000000000000000000000000000000000000000000000002
|
3
|
+
1022343374200010630690000567329000000 00000015210601000000DM 00000000000000000000 0206050916000000000152106 100916000000000590010407010020509160000229000000000000000000000000000000000000000000000000000000000000000000000000005900000000000000000000000000000000000000000000000000000010000000000000 1111111111111100000000000000000000000000000000000000000003
|
4
|
+
1022343374200010630690000567329000000 00000015660101000000DM 00000000000000000000 0306050916000000000156601 050916000000002500010405800030509160000229000000000000000000000000000000000000000000000000000000000000000000000000025000000000000000000000000000000000000000000000000000000010000000000000 2222222222222200000000000000000000000000000000000000000004
|
5
|
+
1022343374200010630690000567329000000 00000015751701000000DM 00000000000000000000 0106050916000000000157517 100916000000000500000183480040509160000229000000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000010000000000000 3333333333333300000000000000000000000000000000000000000005
|
6
|
+
1022343374200010630690000567329000000 00000015761001000000DM 00000000000000000000 0106050916000000000157610 120916000000003500075630690050509160000189000000000000000000000000000000000000000000000000000000000000000000000000035000000000000000000000000000000000000000000000000000000010000000000000 4444444444444400000000000000000000000000000000000000000006
|
7
|
+
9027563069SICOOB MAXICR�DITO RUA FERNANDO MACHADO LAGUNA VERMELHA 89805052Chapec� SC060920160000000900000010199 000007
|
@@ -2,9 +2,12 @@
|
|
2
2
|
require 'test_helper'
|
3
3
|
|
4
4
|
class TesteBoleto < BrBoleto::Boleto::Base
|
5
|
-
def
|
5
|
+
def valid_valor_documento_tamanho_maximo
|
6
6
|
9_999.99 # Default 99999999.99
|
7
7
|
end
|
8
|
+
def conta_class
|
9
|
+
BrBoleto::Conta::Sicoob
|
10
|
+
end
|
8
11
|
end
|
9
12
|
|
10
13
|
describe TesteBoleto do
|
@@ -2,11 +2,11 @@
|
|
2
2
|
require 'test_helper'
|
3
3
|
|
4
4
|
class TesteSicoob < BrBoleto::Boleto::Sicoob
|
5
|
-
def
|
5
|
+
def valid_valor_documento_tamanho_maximo
|
6
6
|
456.50 # Default 99999999.99
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def valid_carteira_inclusion
|
10
10
|
%w[1] # Default %w[1 3]
|
11
11
|
end
|
12
12
|
end
|
@@ -15,11 +15,27 @@ describe TesteSicoob do
|
|
15
15
|
subject { TesteSicoob.new() }
|
16
16
|
|
17
17
|
describe "on validations" do
|
18
|
-
it { must validate_numericality_of(:valor_documento).is_less_than_or_equal_to(456.50) }
|
19
18
|
|
20
|
-
it
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
it "valor maximo do documento" do
|
20
|
+
subject.send(:valid_valor_documento_tamanho_maximo).must_equal 456.5
|
21
|
+
must validate_numericality_of(:valor_documento).is_less_than_or_equal_to(456.50)
|
22
|
+
end
|
23
|
+
|
24
|
+
context '#conta.carteira' do
|
25
|
+
it { subject.valid_carteira_inclusion.must_equal ['1'] }
|
26
|
+
it "validação da carteira da conta" do
|
27
|
+
subject.conta.carteira = '3'
|
28
|
+
conta_must_be_msg_error(:carteira, :custom_inclusion, {list: '1'})
|
29
|
+
subject.conta.carteira = '1'
|
30
|
+
conta_wont_be_msg_error(:carteira, :custom_inclusion, {list: '1'})
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def conta_must_be_msg_error(attr_validation, msg_key, options_msg={})
|
35
|
+
must_be_message_error(:base, "#{BrBoleto::Conta::Sicoob.human_attribute_name(attr_validation)} #{get_message(msg_key, options_msg)}")
|
36
|
+
end
|
37
|
+
def conta_wont_be_msg_error(attr_validation, msg_key, options_msg={})
|
38
|
+
wont_be_message_error(:base, "#{BrBoleto::Conta::Sicoob.human_attribute_name(attr_validation)} #{get_message(msg_key, options_msg)}")
|
39
|
+
end
|
24
40
|
end
|
25
41
|
end
|
data/test/test_helper.rb
CHANGED
@@ -12,6 +12,8 @@ require 'shoulda/matchers'
|
|
12
12
|
require "minitest/reporters"
|
13
13
|
require 'mocha/mini_test'
|
14
14
|
|
15
|
+
require 'pry'
|
16
|
+
|
15
17
|
|
16
18
|
require 'factory_girl_rails'
|
17
19
|
|
@@ -34,4 +36,72 @@ end
|
|
34
36
|
class MiniTest::Spec
|
35
37
|
include Shoulda::Matchers::ActiveModel
|
36
38
|
include FactoryGirl::Syntax::Methods
|
39
|
+
|
40
|
+
def open_fixture(path)
|
41
|
+
file_path = File.expand_path('../fixtures', __FILE__) + '/'+ path
|
42
|
+
File.open(file_path)
|
43
|
+
end
|
44
|
+
|
45
|
+
def read_fixture(path)
|
46
|
+
file_path = File.expand_path('../fixtures', __FILE__) + '/'+ path
|
47
|
+
File.read(file_path)
|
48
|
+
end
|
49
|
+
|
50
|
+
def wont_be_message_error(column, message=nil, msg_params={}, exec_valid = true)
|
51
|
+
message = get_message(message, msg_params, column) if message
|
52
|
+
subject.valid? if exec_valid
|
53
|
+
messages = subject.errors.messages[column.to_sym]
|
54
|
+
if message.nil?
|
55
|
+
messages.nil?.must_equal true, "Não deveria ter mensagem de erro para o atributo #{column}, mas foi encontrado os erros: \n -> #{messages ? messages.join("\n -> ") : '' }"
|
56
|
+
elsif messages.blank?
|
57
|
+
assert true
|
58
|
+
elsif messages.include?(message)
|
59
|
+
flunk "Não deveria ter o erro \"#{message}\" para o atributo \"#{column}\""
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def must_be_message_error(column, message=nil, msg_params={}, exec_valid = true)
|
64
|
+
message = get_message(message, msg_params, column) if message
|
65
|
+
subject.valid? if exec_valid
|
66
|
+
messages = subject.errors.messages[column.to_sym]
|
67
|
+
if message.nil?
|
68
|
+
messages.nil?.must_equal false, "Deveria ter alguma mensagem de erro para o atributo #{column}"
|
69
|
+
elsif messages.blank?
|
70
|
+
flunk "Deveria ter o erro \"#{message}\" para o atributo \"#{column}\", porém não há erro algum."
|
71
|
+
elsif messages.include?(message)
|
72
|
+
assert true
|
73
|
+
else
|
74
|
+
flunk "Deveria ter o erro \"#{message}\" para o atributo \"#{column}\", mas foi encontrado apenas os erros: \n -> #{messages.join("\n -> ") }"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def must_have_alias_attribute(alias_name, attribute, test_value=1)
|
79
|
+
subject.send("#{attribute}=", test_value)
|
80
|
+
subject.send(alias_name).must_equal test_value
|
81
|
+
|
82
|
+
subject.send("#{alias_name}=", test_value)
|
83
|
+
subject.send(attribute).must_equal test_value
|
84
|
+
end
|
85
|
+
|
86
|
+
private
|
87
|
+
|
88
|
+
def get_message(msg, msg_params, column=:base)
|
89
|
+
if !msg.is_a?(Symbol)
|
90
|
+
msg
|
91
|
+
else
|
92
|
+
if I18n.exists?("activemodel.errors.models.#{subject.class.name.underscore}.attributes.#{column}.#{msg}")
|
93
|
+
I18n.t("activemodel.errors.models.#{subject.class.name.underscore}.#{msg}", msg_params)
|
94
|
+
elsif I18n.exists?("activemodel.errors.models.#{subject.class.name.underscore}.#{msg}")
|
95
|
+
I18n.t("activemodel.errors.models.#{subject.class.name.underscore}.#{msg}", msg_params)
|
96
|
+
elsif I18n.exists?("activemodel.errors.models.#{subject.class.superclass.name.underscore}.#{msg}")
|
97
|
+
I18n.t("activemodel.errors.models.#{subject.class.superclass.name.underscore}.#{msg}", msg_params)
|
98
|
+
elsif I18n.exists?("errors.messages.#{subject.class.name.underscore}.#{msg}")
|
99
|
+
I18n.t("errors.messages.#{subject.class.name.underscore}.#{msg}", msg_params)
|
100
|
+
elsif I18n.exists?("activemodel.errors.messages.#{msg}")
|
101
|
+
I18n.t("activemodel.errors.messages.#{msg}", msg_params)
|
102
|
+
else
|
103
|
+
I18n.t("errors.messages.#{msg}", msg_params)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
37
107
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: br_boleto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno M. Mergen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -84,6 +84,9 @@ files:
|
|
84
84
|
- br_boleto.gemspec
|
85
85
|
- lib/br_boleto.rb
|
86
86
|
- lib/br_boleto/active_model_base.rb
|
87
|
+
- lib/br_boleto/association/have_conta.rb
|
88
|
+
- lib/br_boleto/association/have_pagador.rb
|
89
|
+
- lib/br_boleto/association/have_pagamentos.rb
|
87
90
|
- lib/br_boleto/boleto/base.rb
|
88
91
|
- lib/br_boleto/boleto/caixa.rb
|
89
92
|
- lib/br_boleto/boleto/sicoob.rb
|
@@ -100,9 +103,14 @@ files:
|
|
100
103
|
- lib/br_boleto/calculos/modulo11_fator_de9a2.rb
|
101
104
|
- lib/br_boleto/calculos/modulo11_fator_de9a2_resto_x.rb
|
102
105
|
- lib/br_boleto/calculos/modulo_numero_de_controle.rb
|
106
|
+
- lib/br_boleto/conta/base.rb
|
107
|
+
- lib/br_boleto/conta/caixa.rb
|
108
|
+
- lib/br_boleto/conta/sicoob.rb
|
103
109
|
- lib/br_boleto/helper/cpf_cnpj.rb
|
110
|
+
- lib/br_boleto/helper/default_codes.rb
|
104
111
|
- lib/br_boleto/helper/format_value.rb
|
105
112
|
- lib/br_boleto/helper/number.rb
|
113
|
+
- lib/br_boleto/pagador.rb
|
106
114
|
- lib/br_boleto/remessa/base.rb
|
107
115
|
- lib/br_boleto/remessa/cnab240/base.rb
|
108
116
|
- lib/br_boleto/remessa/cnab240/caixa.rb
|
@@ -115,15 +123,28 @@ files:
|
|
115
123
|
- lib/br_boleto/remessa/cnab240/helper/trailer_arquivo.rb
|
116
124
|
- lib/br_boleto/remessa/cnab240/helper/trailer_lote.rb
|
117
125
|
- lib/br_boleto/remessa/cnab240/sicoob.rb
|
126
|
+
- lib/br_boleto/remessa/cnab400/base.rb
|
127
|
+
- lib/br_boleto/remessa/cnab400/helper/detalhe.rb
|
128
|
+
- lib/br_boleto/remessa/cnab400/helper/header.rb
|
129
|
+
- lib/br_boleto/remessa/cnab400/helper/trailer.rb
|
130
|
+
- lib/br_boleto/remessa/cnab400/sicoob.rb
|
118
131
|
- lib/br_boleto/remessa/lote.rb
|
119
132
|
- lib/br_boleto/remessa/pagamento.rb
|
120
133
|
- lib/br_boleto/retorno/base.rb
|
121
134
|
- lib/br_boleto/retorno/cnab240/base.rb
|
122
135
|
- lib/br_boleto/retorno/cnab240/caixa.rb
|
123
136
|
- lib/br_boleto/retorno/cnab240/sicoob.rb
|
137
|
+
- lib/br_boleto/retorno/cnab400/base.rb
|
138
|
+
- lib/br_boleto/retorno/cnab400/sicoob.rb
|
124
139
|
- lib/br_boleto/retorno/pagamento.rb
|
125
140
|
- lib/br_boleto/string_methods.rb
|
141
|
+
- lib/br_boleto/validations.rb
|
126
142
|
- lib/br_boleto/version.rb
|
143
|
+
- lib/config/locales/br-boleto-en.yml
|
144
|
+
- lib/config/locales/br-boleto-pt-BR.yml
|
145
|
+
- test/br_boleto/association/have_conta_test.rb
|
146
|
+
- test/br_boleto/association/have_pagador_test.rb
|
147
|
+
- test/br_boleto/association/have_pagamentos_test.rb
|
127
148
|
- test/br_boleto/boleto/base_test.rb
|
128
149
|
- test/br_boleto/boleto/caixa_test.rb
|
129
150
|
- test/br_boleto/boleto/sicoob_test.rb
|
@@ -140,6 +161,11 @@ files:
|
|
140
161
|
- test/br_boleto/calculos/modulo11_fator_de9a2_test.rb
|
141
162
|
- test/br_boleto/calculos/modulo11_test.rb
|
142
163
|
- test/br_boleto/calculos/modulo_numero_de_controle_test.rb
|
164
|
+
- test/br_boleto/conta/base_test.rb
|
165
|
+
- test/br_boleto/conta/caixa_test.rb
|
166
|
+
- test/br_boleto/conta/sicoob_test.rb
|
167
|
+
- test/br_boleto/helper/number_test.rb
|
168
|
+
- test/br_boleto/pagador_test.rb
|
143
169
|
- test/br_boleto/remessa/base_test.rb
|
144
170
|
- test/br_boleto/remessa/cnab240/base_test.rb
|
145
171
|
- test/br_boleto/remessa/cnab240/caixa_test.rb
|
@@ -152,25 +178,36 @@ files:
|
|
152
178
|
- test/br_boleto/remessa/cnab240/helper/trailer_arquivo_test.rb
|
153
179
|
- test/br_boleto/remessa/cnab240/helper/trailer_lote_test.rb
|
154
180
|
- test/br_boleto/remessa/cnab240/sicoob_test.rb
|
181
|
+
- test/br_boleto/remessa/cnab400/base_test.rb
|
182
|
+
- test/br_boleto/remessa/cnab400/sicoob_test.rb
|
155
183
|
- test/br_boleto/remessa/lote_test.rb
|
156
184
|
- test/br_boleto/remessa/pagamento_test.rb
|
157
185
|
- test/br_boleto/retorno/base_test.rb
|
158
186
|
- test/br_boleto/retorno/cnab240/base_test.rb
|
159
187
|
- test/br_boleto/retorno/cnab240/caixa_test.rb
|
160
188
|
- test/br_boleto/retorno/cnab240/sicoob_test.rb
|
189
|
+
- test/br_boleto/retorno/cnab400/sicoob_test.rb
|
161
190
|
- test/br_boleto/retorno/pagamento_test.rb
|
162
191
|
- test/factories/boleto/base.rb
|
163
192
|
- test/factories/boleto/boleto_caixa.rb
|
164
193
|
- test/factories/boleto/boleto_sicoob.rb
|
194
|
+
- test/factories/conta/base.rb
|
195
|
+
- test/factories/conta/caixa.rb
|
196
|
+
- test/factories/conta/sicoob.rb
|
197
|
+
- test/factories/pagador.rb
|
165
198
|
- test/factories/remessa/base.rb
|
166
199
|
- test/factories/remessa/cnab240/base.rb
|
167
200
|
- test/factories/remessa/cnab240/caixa.rb
|
168
201
|
- test/factories/remessa/cnab240/sicoob.rb
|
202
|
+
- test/factories/remessa/cnab400/base.rb
|
203
|
+
- test/factories/remessa/cnab400/sicoob.rb
|
169
204
|
- test/factories/remessa/lote.rb
|
170
205
|
- test/factories/remessa/pagamento.rb
|
171
206
|
- test/factories/retorno/pagamento.rb
|
172
|
-
- test/
|
173
|
-
- test/
|
207
|
+
- test/fixtures/remessa/cnab240/sicoob.rem
|
208
|
+
- test/fixtures/retorno/cnab240/caixa.ret
|
209
|
+
- test/fixtures/retorno/cnab240/padrao240.ret
|
210
|
+
- test/fixtures/retorno/cnab400/sicoob.ret
|
174
211
|
- test/inheritance/boleto_test.rb
|
175
212
|
- test/inheritance/sicoob_test.rb
|
176
213
|
- test/test_helper.rb
|
@@ -199,6 +236,9 @@ signing_key:
|
|
199
236
|
specification_version: 4
|
200
237
|
summary: Emissão de Boletos Bancários em Ruby
|
201
238
|
test_files:
|
239
|
+
- test/br_boleto/association/have_conta_test.rb
|
240
|
+
- test/br_boleto/association/have_pagador_test.rb
|
241
|
+
- test/br_boleto/association/have_pagamentos_test.rb
|
202
242
|
- test/br_boleto/boleto/base_test.rb
|
203
243
|
- test/br_boleto/boleto/caixa_test.rb
|
204
244
|
- test/br_boleto/boleto/sicoob_test.rb
|
@@ -215,6 +255,11 @@ test_files:
|
|
215
255
|
- test/br_boleto/calculos/modulo11_fator_de9a2_test.rb
|
216
256
|
- test/br_boleto/calculos/modulo11_test.rb
|
217
257
|
- test/br_boleto/calculos/modulo_numero_de_controle_test.rb
|
258
|
+
- test/br_boleto/conta/base_test.rb
|
259
|
+
- test/br_boleto/conta/caixa_test.rb
|
260
|
+
- test/br_boleto/conta/sicoob_test.rb
|
261
|
+
- test/br_boleto/helper/number_test.rb
|
262
|
+
- test/br_boleto/pagador_test.rb
|
218
263
|
- test/br_boleto/remessa/base_test.rb
|
219
264
|
- test/br_boleto/remessa/cnab240/base_test.rb
|
220
265
|
- test/br_boleto/remessa/cnab240/caixa_test.rb
|
@@ -227,24 +272,36 @@ test_files:
|
|
227
272
|
- test/br_boleto/remessa/cnab240/helper/trailer_arquivo_test.rb
|
228
273
|
- test/br_boleto/remessa/cnab240/helper/trailer_lote_test.rb
|
229
274
|
- test/br_boleto/remessa/cnab240/sicoob_test.rb
|
275
|
+
- test/br_boleto/remessa/cnab400/base_test.rb
|
276
|
+
- test/br_boleto/remessa/cnab400/sicoob_test.rb
|
230
277
|
- test/br_boleto/remessa/lote_test.rb
|
231
278
|
- test/br_boleto/remessa/pagamento_test.rb
|
232
279
|
- test/br_boleto/retorno/base_test.rb
|
233
280
|
- test/br_boleto/retorno/cnab240/base_test.rb
|
234
281
|
- test/br_boleto/retorno/cnab240/caixa_test.rb
|
235
282
|
- test/br_boleto/retorno/cnab240/sicoob_test.rb
|
283
|
+
- test/br_boleto/retorno/cnab400/sicoob_test.rb
|
236
284
|
- test/br_boleto/retorno/pagamento_test.rb
|
237
285
|
- test/factories/boleto/base.rb
|
238
286
|
- test/factories/boleto/boleto_caixa.rb
|
239
287
|
- test/factories/boleto/boleto_sicoob.rb
|
288
|
+
- test/factories/conta/base.rb
|
289
|
+
- test/factories/conta/caixa.rb
|
290
|
+
- test/factories/conta/sicoob.rb
|
291
|
+
- test/factories/pagador.rb
|
240
292
|
- test/factories/remessa/base.rb
|
241
293
|
- test/factories/remessa/cnab240/base.rb
|
242
294
|
- test/factories/remessa/cnab240/caixa.rb
|
243
295
|
- test/factories/remessa/cnab240/sicoob.rb
|
296
|
+
- test/factories/remessa/cnab400/base.rb
|
297
|
+
- test/factories/remessa/cnab400/sicoob.rb
|
244
298
|
- test/factories/remessa/lote.rb
|
245
299
|
- test/factories/remessa/pagamento.rb
|
246
300
|
- test/factories/retorno/pagamento.rb
|
247
|
-
- test/
|
248
|
-
- test/
|
301
|
+
- test/fixtures/remessa/cnab240/sicoob.rem
|
302
|
+
- test/fixtures/retorno/cnab240/caixa.ret
|
303
|
+
- test/fixtures/retorno/cnab240/padrao240.ret
|
304
|
+
- test/fixtures/retorno/cnab400/sicoob.ret
|
249
305
|
- test/inheritance/boleto_test.rb
|
250
306
|
- test/inheritance/sicoob_test.rb
|
307
|
+
- test/test_helper.rb
|