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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.markdown +278 -98
  5. data/br_boleto.gemspec +5 -3
  6. data/lib/br_boleto/active_model_base.rb +1 -1
  7. data/lib/br_boleto/association/have_conta.rb +109 -0
  8. data/lib/br_boleto/association/have_pagador.rb +38 -0
  9. data/lib/br_boleto/association/have_pagamentos.rb +44 -0
  10. data/lib/br_boleto/boleto/base.rb +50 -379
  11. data/lib/br_boleto/boleto/caixa.rb +28 -143
  12. data/lib/br_boleto/boleto/sicoob.rb +24 -144
  13. data/lib/br_boleto/conta/base.rb +288 -0
  14. data/lib/br_boleto/conta/caixa.rb +109 -0
  15. data/lib/br_boleto/conta/sicoob.rb +64 -0
  16. data/lib/br_boleto/helper/default_codes.rb +33 -0
  17. data/lib/br_boleto/helper/format_value.rb +1 -0
  18. data/lib/br_boleto/helper/number.rb +30 -0
  19. data/lib/br_boleto/pagador.rb +82 -0
  20. data/lib/br_boleto/remessa/base.rb +28 -50
  21. data/lib/br_boleto/remessa/cnab240/base.rb +22 -131
  22. data/lib/br_boleto/remessa/cnab240/caixa.rb +16 -62
  23. data/lib/br_boleto/remessa/cnab240/helper/header_arquivo.rb +7 -7
  24. data/lib/br_boleto/remessa/cnab240/helper/header_lote.rb +6 -6
  25. data/lib/br_boleto/remessa/cnab240/helper/segmento_p.rb +22 -22
  26. data/lib/br_boleto/remessa/cnab240/helper/segmento_q.rb +16 -16
  27. data/lib/br_boleto/remessa/cnab240/helper/segmento_r.rb +3 -3
  28. data/lib/br_boleto/remessa/cnab240/helper/segmento_s.rb +3 -3
  29. data/lib/br_boleto/remessa/cnab240/helper/trailer_arquivo.rb +3 -3
  30. data/lib/br_boleto/remessa/cnab240/helper/trailer_lote.rb +3 -3
  31. data/lib/br_boleto/remessa/cnab240/sicoob.rb +36 -73
  32. data/lib/br_boleto/remessa/cnab400/base.rb +95 -0
  33. data/lib/br_boleto/remessa/cnab400/helper/detalhe.rb +136 -0
  34. data/lib/br_boleto/remessa/cnab400/helper/header.rb +114 -0
  35. data/lib/br_boleto/remessa/cnab400/helper/trailer.rb +50 -0
  36. data/lib/br_boleto/remessa/cnab400/sicoob.rb +249 -0
  37. data/lib/br_boleto/remessa/lote.rb +1 -23
  38. data/lib/br_boleto/remessa/pagamento.rb +188 -51
  39. data/lib/br_boleto/retorno/base.rb +9 -0
  40. data/lib/br_boleto/retorno/cnab240/base.rb +2 -10
  41. data/lib/br_boleto/retorno/cnab400/base.rb +48 -0
  42. data/lib/br_boleto/retorno/cnab400/sicoob.rb +42 -0
  43. data/lib/br_boleto/retorno/pagamento.rb +12 -6
  44. data/lib/br_boleto/string_methods.rb +8 -2
  45. data/lib/br_boleto/validations.rb +19 -0
  46. data/lib/br_boleto/version.rb +3 -3
  47. data/lib/br_boleto.rb +38 -8
  48. data/lib/config/locales/br-boleto-en.yml +89 -0
  49. data/lib/config/locales/br-boleto-pt-BR.yml +89 -0
  50. data/test/br_boleto/association/have_conta_test.rb +319 -0
  51. data/test/br_boleto/association/have_pagador_test.rb +110 -0
  52. data/test/br_boleto/association/have_pagamentos_test.rb +113 -0
  53. data/test/br_boleto/boleto/base_test.rb +127 -201
  54. data/test/br_boleto/boleto/caixa_test.rb +58 -72
  55. data/test/br_boleto/boleto/sicoob_test.rb +88 -147
  56. data/test/br_boleto/conta/base_test.rb +490 -0
  57. data/test/br_boleto/conta/caixa_test.rb +154 -0
  58. data/test/br_boleto/conta/sicoob_test.rb +144 -0
  59. data/test/br_boleto/helper/number_test.rb +29 -0
  60. data/test/br_boleto/pagador_test.rb +158 -0
  61. data/test/br_boleto/remessa/base_test.rb +37 -62
  62. data/test/br_boleto/remessa/cnab240/base_test.rb +75 -95
  63. data/test/br_boleto/remessa/cnab240/caixa_test.rb +61 -96
  64. data/test/br_boleto/remessa/cnab240/helper/header_arquivo_test.rb +11 -11
  65. data/test/br_boleto/remessa/cnab240/helper/header_lote_test.rb +8 -8
  66. data/test/br_boleto/remessa/cnab240/helper/segmento_p_test.rb +17 -15
  67. data/test/br_boleto/remessa/cnab240/helper/segmento_q_test.rb +13 -13
  68. data/test/br_boleto/remessa/cnab240/helper/segmento_r_test.rb +2 -2
  69. data/test/br_boleto/remessa/cnab240/helper/segmento_s_test.rb +3 -3
  70. data/test/br_boleto/remessa/cnab240/helper/trailer_arquivo_test.rb +1 -1
  71. data/test/br_boleto/remessa/cnab240/helper/trailer_lote_test.rb +1 -1
  72. data/test/br_boleto/remessa/cnab240/sicoob_test.rb +136 -131
  73. data/test/br_boleto/remessa/cnab400/base_test.rb +263 -0
  74. data/test/br_boleto/remessa/cnab400/sicoob_test.rb +179 -0
  75. data/test/br_boleto/remessa/lote_test.rb +2 -41
  76. data/test/br_boleto/remessa/pagamento_test.rb +186 -188
  77. data/test/br_boleto/retorno/base_test.rb +0 -1
  78. data/test/br_boleto/retorno/cnab240/base_test.rb +12 -11
  79. data/test/br_boleto/retorno/cnab240/caixa_test.rb +11 -11
  80. data/test/br_boleto/retorno/cnab240/sicoob_test.rb +11 -11
  81. data/test/br_boleto/retorno/cnab400/sicoob_test.rb +227 -0
  82. data/test/br_boleto/retorno/pagamento_test.rb +6 -6
  83. data/test/factories/boleto/base.rb +9 -7
  84. data/test/factories/boleto/boleto_caixa.rb +2 -9
  85. data/test/factories/boleto/boleto_sicoob.rb +10 -8
  86. data/test/factories/conta/base.rb +10 -0
  87. data/test/factories/conta/caixa.rb +15 -0
  88. data/test/factories/conta/sicoob.rb +16 -0
  89. data/test/factories/pagador.rb +15 -0
  90. data/test/factories/remessa/base.rb +0 -6
  91. data/test/factories/remessa/cnab240/base.rb +0 -10
  92. data/test/factories/remessa/cnab240/caixa.rb +1 -6
  93. data/test/factories/remessa/cnab240/sicoob.rb +1 -10
  94. data/test/factories/remessa/cnab400/base.rb +8 -0
  95. data/test/factories/remessa/cnab400/sicoob.rb +8 -0
  96. data/test/factories/remessa/pagamento.rb +8 -7
  97. data/test/fixtures/remessa/cnab240/sicoob.rem +8 -0
  98. data/test/{files → fixtures}/retorno/cnab240/caixa.ret +0 -0
  99. data/test/{files → fixtures}/retorno/cnab240/padrao240.ret +0 -0
  100. data/test/fixtures/retorno/cnab400/sicoob.ret +7 -0
  101. data/test/inheritance/boleto_test.rb +4 -1
  102. data/test/inheritance/sicoob_test.rb +23 -7
  103. data/test/test_helper.rb +70 -0
  104. metadata +63 -6
@@ -0,0 +1,8 @@
1
+ # encoding: UTF-8
2
+
3
+ FactoryGirl.define do
4
+ factory :remessa_cnab400_base, class: BrBoleto::Remessa::Cnab400::Base do
5
+ pagamentos { FactoryGirl.build(:remessa_pagamento) }
6
+ sequencial_remessa 1
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: UTF-8
2
+
3
+ FactoryGirl.define do
4
+ factory :remessa_cnab400_sicoob, class: BrBoleto::Remessa::Cnab400::Sicoob do
5
+ pagamentos { FactoryGirl.build(:remessa_pagamento) }
6
+ sequencial_remessa 1
7
+ end
8
+ end
@@ -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
- documento_sacado "12345678901"
10
- nome_sacado "TESTE NOME DO SACADO"
11
- endereco_sacado "R. TESTE DO SACADO"
12
- cep_sacado "89888000"
13
- cidade_sacado "PIRÁPORA"
14
- uf_sacado "SC"
15
- bairro_sacado "Bairro"
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
@@ -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 self.valor_documento_tamanho_maximo
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 self.valor_documento_tamanho_maximo
5
+ def valid_valor_documento_tamanho_maximo
6
6
  456.50 # Default 99999999.99
7
7
  end
8
8
 
9
- def self.carteiras_suportadas
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 { must validate_inclusion_of(:carteira).in_array(%w(1)) }
21
- it { wont allow_value(3).for(:carteira) }
22
- it { wont allow_value(6).for(:carteira) }
23
- it { wont allow_value(9).for(:carteira) }
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: 1.2.2
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-06-13 00:00:00.000000000 Z
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/files/retorno/cnab240/caixa.ret
173
- - test/files/retorno/cnab240/padrao240.ret
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/files/retorno/cnab240/caixa.ret
248
- - test/files/retorno/cnab240/padrao240.ret
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