pagseguro-oficial 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -1
  3. data/CHANGELOG.md +17 -1
  4. data/Gemfile +0 -2
  5. data/README.md +1 -1
  6. data/docs/transparent_checkout.md +3 -3
  7. data/examples/authorization/create_authorization.rb +32 -0
  8. data/examples/authorization/create_authorization_with_account.rb +56 -0
  9. data/examples/authorization/{authorization_by_code.rb → search/search_authorization_by_code.rb} +4 -4
  10. data/examples/authorization/search/search_authorization_by_date.rb +35 -0
  11. data/examples/authorization/{authorization_by_notification_code.rb → search/search_authorization_by_notification_code.rb} +4 -5
  12. data/examples/authorization/search/search_authorization_by_reference.rb +31 -0
  13. data/examples/{payment_request.rb → checkout/create_payment_request.rb} +5 -7
  14. data/examples/{transaction/abandoned_transactions.rb → checkout/search/search_abandoned_transactions.rb} +6 -3
  15. data/examples/{transaction/transaction_by_code.rb → checkout/search/search_transaction_by_code.rb} +3 -3
  16. data/examples/{transaction/transaction_by_notification_code.rb → checkout/search/search_transaction_by_notification_code.rb} +3 -3
  17. data/examples/{transaction/transaction_by_reference.rb → checkout/search/search_transaction_by_reference.rb} +3 -3
  18. data/examples/{transaction/transaction_status_history.rb → checkout/search/search_transaction_status_history.rb} +2 -2
  19. data/examples/{transaction/transactions_by_date.rb → checkout/search/search_transactions_by_date.rb} +3 -3
  20. data/examples/{transaction/boleto_transaction_request.rb → direct/create_transaction_using_boleto.rb} +1 -1
  21. data/examples/{transaction/credit_card_transaction_request.rb → direct/create_transaction_using_credit_card.rb} +1 -1
  22. data/examples/{transaction/online_debit_transaction.rb → direct/create_transaction_using_online_debit.rb} +1 -1
  23. data/examples/{installment.rb → get_installments.rb} +3 -3
  24. data/examples/{transaction/transaction_cancellation.rb → request_transaction_cancellation.rb} +2 -2
  25. data/examples/{authorization/authorization.rb → split_payment/create_authorization.rb} +5 -4
  26. data/examples/split_payment/create_payment_request.rb +71 -0
  27. data/lib/pagseguro.rb +14 -8
  28. data/lib/pagseguro/account.rb +29 -0
  29. data/lib/pagseguro/authorization.rb +10 -4
  30. data/lib/pagseguro/authorization/collection.rb +3 -1
  31. data/lib/pagseguro/authorization/request_serializer.rb +6 -6
  32. data/lib/pagseguro/authorization/response.rb +2 -2
  33. data/lib/pagseguro/authorization_request.rb +16 -4
  34. data/lib/pagseguro/authorization_request/request_serializer.rb +127 -15
  35. data/lib/pagseguro/authorization_request/response.rb +2 -2
  36. data/lib/pagseguro/company.rb +41 -0
  37. data/lib/pagseguro/document.rb +4 -0
  38. data/lib/pagseguro/documents.rb +5 -0
  39. data/lib/pagseguro/errors.rb +27 -5
  40. data/lib/pagseguro/extensions/collection_object.rb +34 -0
  41. data/lib/pagseguro/item.rb +4 -0
  42. data/lib/pagseguro/items.rb +10 -17
  43. data/lib/pagseguro/partner.rb +20 -0
  44. data/lib/pagseguro/payment_request.rb +30 -2
  45. data/lib/pagseguro/payment_request/{serializer.rb → request_serializer.rb} +86 -1
  46. data/lib/pagseguro/person.rb +40 -0
  47. data/lib/pagseguro/phone.rb +8 -0
  48. data/lib/pagseguro/phones.rb +5 -0
  49. data/lib/pagseguro/receiver.rb +17 -0
  50. data/lib/pagseguro/receiver_split.rb +15 -0
  51. data/lib/pagseguro/request.rb +25 -1
  52. data/lib/pagseguro/transaction.rb +7 -5
  53. data/lib/pagseguro/transaction_cancellation.rb +3 -6
  54. data/lib/pagseguro/transaction_cancellation/response.rb +7 -6
  55. data/lib/pagseguro/{refund.rb → transaction_refund.rb} +2 -2
  56. data/lib/pagseguro/{refund → transaction_refund}/request_serializer.rb +1 -1
  57. data/lib/pagseguro/{refund → transaction_refund}/response.rb +9 -9
  58. data/lib/pagseguro/{refund → transaction_refund}/response_serializer.rb +1 -1
  59. data/lib/pagseguro/transaction_request.rb +1 -4
  60. data/lib/pagseguro/transaction_request/response.rb +8 -7
  61. data/lib/pagseguro/version.rb +1 -1
  62. data/locales/pt-BR.yml +1 -0
  63. data/pagseguro-oficial.gemspec +13 -13
  64. data/spec/fixtures/authorization/search_authorization.xml +47 -0
  65. data/spec/fixtures/authorization_request/authorization_request.xml +11 -0
  66. data/spec/fixtures/authorization_request/authorization_request_with_account.xml +47 -0
  67. data/spec/pagseguro/account_spec.rb +27 -0
  68. data/spec/pagseguro/authorization/collection_spec.rb +3 -3
  69. data/spec/pagseguro/authorization/request_serializer_spec.rb +1 -2
  70. data/spec/pagseguro/authorization/response_spec.rb +70 -15
  71. data/spec/pagseguro/authorization_request/request_serializer_spec.rb +314 -14
  72. data/spec/pagseguro/authorization_request_spec.rb +96 -31
  73. data/spec/pagseguro/authorization_spec.rb +52 -10
  74. data/spec/pagseguro/company_spec.rb +12 -0
  75. data/spec/pagseguro/documents_spec.rb +37 -0
  76. data/spec/pagseguro/errors_spec.rb +45 -6
  77. data/spec/pagseguro/extensions/collection_object_spec.rb +77 -0
  78. data/spec/pagseguro/features/create_transaction_request_spec.rb +2 -2
  79. data/spec/pagseguro/installment/response_spec.rb +5 -3
  80. data/spec/pagseguro/installment_spec.rb +5 -2
  81. data/spec/pagseguro/items_spec.rb +104 -12
  82. data/spec/pagseguro/pagseguro_spec.rb +8 -8
  83. data/spec/pagseguro/partner_spec.rb +8 -0
  84. data/spec/pagseguro/payment_request/request_serializer_spec.rb +251 -0
  85. data/spec/pagseguro/payment_request_spec.rb +67 -11
  86. data/spec/pagseguro/person_spec.rb +10 -0
  87. data/spec/pagseguro/phones_spec.rb +38 -0
  88. data/spec/pagseguro/receiver_spec.rb +6 -0
  89. data/spec/pagseguro/receiver_split_spec.rb +7 -0
  90. data/spec/pagseguro/request_spec.rb +27 -4
  91. data/spec/pagseguro/session/response_spec.rb +6 -2
  92. data/spec/pagseguro/session_spec.rb +5 -2
  93. data/spec/pagseguro/transaction/response_spec.rb +14 -8
  94. data/spec/pagseguro/transaction/search_spec.rb +15 -8
  95. data/spec/pagseguro/transaction_cancellation/response_spec.rb +6 -3
  96. data/spec/pagseguro/transaction_cancellation_spec.rb +7 -5
  97. data/spec/pagseguro/{refund → transaction_refund}/request_serializer_spec.rb +3 -3
  98. data/spec/pagseguro/{refund → transaction_refund}/response_serializer_spec.rb +1 -1
  99. data/spec/pagseguro/{refund → transaction_refund}/response_spec.rb +3 -3
  100. data/spec/pagseguro/{refund_spec.rb → transaction_refund_spec.rb} +15 -7
  101. data/spec/pagseguro/transaction_request/request_serializer_spec.rb +9 -9
  102. data/spec/pagseguro/transaction_request/response_spec.rb +5 -2
  103. data/spec/pagseguro/transaction_request_spec.rb +14 -9
  104. data/spec/pagseguro/transaction_spec.rb +37 -30
  105. data/spec/spec_helper.rb +0 -3
  106. data/spec/support/ensure_type_macro.rb +20 -2
  107. data/{examples/refund.rb → transaction/transaction_refund.rb} +1 -1
  108. metadata +112 -96
  109. data/examples/transaction/invalid_transaction_by_notification_code.rb +0 -22
  110. data/lib/pagseguro/refund/serializer.rb +0 -24
  111. data/lib/pagseguro/transaction_cancellation/serializer.rb +0 -18
  112. data/spec/pagseguro/payment_request/serializer_spec.rb +0 -166
  113. data/spec/pagseguro/refund/serializer_spec.rb +0 -15
  114. data/spec/pagseguro/transaction_cancellation/serializer_spec.rb +0 -13
@@ -1,11 +1,11 @@
1
1
  require "spec_helper"
2
2
 
3
- describe PagSeguro::Refund::Response do
3
+ describe PagSeguro::TransactionRefund::Response do
4
4
  let(:refund) do
5
- PagSeguro::Refund.new
5
+ PagSeguro::TransactionRefund.new
6
6
  end
7
7
 
8
- subject { PagSeguro::Refund::Response.new(http_response, refund) }
8
+ subject { PagSeguro::TransactionRefund::Response.new(http_response, refund) }
9
9
 
10
10
  context '#success?' do
11
11
  let(:http_response) do
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe PagSeguro::Refund do
3
+ describe PagSeguro::TransactionRefund do
4
4
  let(:xml_parsed) { Nokogiri::XML(raw_xml) }
5
5
 
6
6
  it_assigns_attribute :transaction_code
@@ -11,7 +11,7 @@ describe PagSeguro::Refund do
11
11
  end
12
12
 
13
13
  describe "#register" do
14
- let(:refund) { PagSeguro::Refund.new }
14
+ let(:refund) { PagSeguro::TransactionRefund.new }
15
15
 
16
16
  context 'a correct response' do
17
17
  before { FakeWeb.register_uri :any, %r[.*?], body: raw_xml }
@@ -30,8 +30,8 @@ describe PagSeguro::Refund do
30
30
  refund.register
31
31
  end
32
32
 
33
- it "returns a PagSeguro::Refund" do
34
- expect(refund.register).to be_a(PagSeguro::Refund)
33
+ it "returns a PagSeguro::TransactionRefund" do
34
+ expect(refund.register).to be_a(PagSeguro::TransactionRefund)
35
35
  end
36
36
  end
37
37
 
@@ -44,17 +44,25 @@ describe PagSeguro::Refund do
44
44
  let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
45
45
 
46
46
  let :response_request do
47
- double(:ResponseRequest, success?: false, unauthorized?: false, not_found?: false, bad_request?: true, data: xml_parsed, body: raw_xml, :xml? => true)
47
+ double(
48
+ :ResponseRequest,
49
+ success?: false,
50
+ error?: true,
51
+ error: Aitch::ForbiddenError,
52
+ xml?: true,
53
+ data: xml_parsed,
54
+ body: raw_xml
55
+ )
48
56
  end
49
57
 
50
- it "returns a PagSeguro::Refund with errors" do
58
+ it "returns a PagSeguro::TransactionRefund with errors" do
51
59
  expect(refund.register.errors).not_to be_empty
52
60
  end
53
61
  end
54
62
  end
55
63
 
56
64
  it '#update_attributes' do
57
- refund = PagSeguro::Refund.new
65
+ refund = PagSeguro::TransactionRefund.new
58
66
 
59
67
  expect(refund).to receive(:result=).with("OK")
60
68
 
@@ -6,7 +6,7 @@ describe PagSeguro::TransactionRequest::RequestSerializer do
6
6
  subject(:serializer) { described_class.new(transaction_request) }
7
7
 
8
8
  before do
9
- transaction_request.stub({
9
+ allow(transaction_request).to receive_messages({
10
10
  payment_method: "creditCard",
11
11
  credit_card_token: "4as56d4a56d456as456dsa"
12
12
  })
@@ -14,15 +14,15 @@ describe PagSeguro::TransactionRequest::RequestSerializer do
14
14
 
15
15
  context "global configuration serialization" do
16
16
  before do
17
- PagSeguro.receiver_email = "RECEIVER"
17
+ PagSeguro.configuration.receiver_email = "RECEIVER"
18
18
  end
19
19
 
20
- it { expect(params).to include(receiverEmail: PagSeguro.receiver_email) }
20
+ it { expect(params).to include(receiverEmail: PagSeguro.configuration.receiver_email) }
21
21
  end
22
22
 
23
23
  context "generic attributes serialization" do
24
24
  before do
25
- transaction_request.stub({
25
+ allow(transaction_request).to receive_messages({
26
26
  currency: "BRL",
27
27
  reference: "REF123",
28
28
  extra_amount: 1234.50,
@@ -95,7 +95,7 @@ describe PagSeguro::TransactionRequest::RequestSerializer do
95
95
  }
96
96
  })
97
97
 
98
- transaction_request.stub({holder: holder})
98
+ allow(transaction_request).to receive(:holder).and_return(holder)
99
99
  end
100
100
 
101
101
  it { expect(params).to include(creditCardHolderName: "Jose Comprador") }
@@ -117,7 +117,7 @@ describe PagSeguro::TransactionRequest::RequestSerializer do
117
117
  complement: "COMPLEMENT"
118
118
  })
119
119
 
120
- transaction_request.stub(billing_address: address)
120
+ allow(transaction_request).to receive(:billing_address).and_return(address)
121
121
  end
122
122
 
123
123
  it { expect(params).to include(billingAddressStreet: "STREET") }
@@ -143,7 +143,7 @@ describe PagSeguro::TransactionRequest::RequestSerializer do
143
143
  }
144
144
  })
145
145
 
146
- transaction_request.stub(sender: sender)
146
+ allow(transaction_request).to receive(:sender).and_return(sender)
147
147
  end
148
148
 
149
149
  it { expect(params).to include(senderHash: "HASH") }
@@ -190,7 +190,7 @@ describe PagSeguro::TransactionRequest::RequestSerializer do
190
190
  quantity: "1"
191
191
  })
192
192
 
193
- transaction_request.stub({installment: installment})
193
+ allow(transaction_request).to receive(:installment).and_return(installment)
194
194
  end
195
195
 
196
196
  it { expect(params).to include(installmentValue: "459.50") }
@@ -199,7 +199,7 @@ describe PagSeguro::TransactionRequest::RequestSerializer do
199
199
 
200
200
  context "extra params serialization" do
201
201
  before do
202
- transaction_request.stub({
202
+ allow(transaction_request).to receive_messages({
203
203
  extra_params: [
204
204
  { extraParam: 'param_value' },
205
205
  { newExtraParam: 'extra_param_value' }
@@ -42,8 +42,11 @@ describe PagSeguro::TransactionRequest::Response do
42
42
 
43
43
  context "when request fails" do
44
44
  before do
45
- allow(http_response).to receive(:success?).and_return(false)
46
- allow(http_response).to receive(:bad_request?).and_return(true)
45
+ allow(http_response).to receive_messages(
46
+ success?: false,
47
+ error?: true,
48
+ error: Aitch::BadRequestError
49
+ )
47
50
  end
48
51
 
49
52
  let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
@@ -57,7 +57,7 @@ describe PagSeguro::TransactionRequest do |variable|
57
57
 
58
58
  describe "#extra_params" do
59
59
  it "is empty before initialization" do
60
- expect(subject.extra_params).to eql([])
60
+ expect(subject.extra_params).to be_empty
61
61
  end
62
62
 
63
63
  it "allows extra parameter addition" do
@@ -79,7 +79,7 @@ describe PagSeguro::TransactionRequest do |variable|
79
79
  end
80
80
 
81
81
  before do
82
- PagSeguro.receiver_email = "RECEIVER"
82
+ PagSeguro.configuration.receiver_email = "RECEIVER"
83
83
 
84
84
  allow(transaction_request).to receive(:payment_method).and_return("credit_card")
85
85
 
@@ -92,20 +92,26 @@ describe PagSeguro::TransactionRequest do |variable|
92
92
  let(:raw_xml) { File.read("./spec/fixtures/transaction_request/success.xml") }
93
93
 
94
94
  it "creates a transaction request" do
95
- expect(transaction_request.create).not_to be_a(PagSeguro::TransactionRequest)
95
+ expect(transaction_request.create).to be_a(PagSeguro::TransactionRequest)
96
96
  expect(transaction_request.code).to eq("9E884542-81B3-4419-9A75-BCC6FB495EF1")
97
97
  end
98
98
  end
99
99
 
100
100
  context "when request fails" do
101
101
  let :response_request do
102
- double(:ResponseRequest, success?: false, unauthorized?: false, bad_request?: false, data: xml_parsed, not_found?: false, body: raw_xml, :xml? => true)
102
+ double(
103
+ :ResponseRequest,
104
+ success?: false,
105
+ error?: true,
106
+ bad_request?: true,
107
+ error: Aitch::BadRequestError,
108
+ xml?: true,
109
+ data: xml_parsed,
110
+ body: raw_xml
111
+ )
103
112
  end
104
113
 
105
114
  before do
106
- allow(response_request).to receive(:success?).and_return(false)
107
- allow(response_request).to receive(:bad_request?).and_return(true)
108
-
109
115
  allow(PagSeguro::Request).to receive(:post)
110
116
  .and_return(response_request)
111
117
  end
@@ -113,8 +119,7 @@ describe PagSeguro::TransactionRequest do |variable|
113
119
  let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
114
120
 
115
121
  it "does not create a transaction request" do
116
- expect(transaction_request.create).to be_falsy
117
- expect(transaction_request.code).to be_nil
122
+ expect { transaction_request.create }.not_to change { transaction_request.code }
118
123
  end
119
124
 
120
125
  it "add errors" do
@@ -48,10 +48,13 @@ describe PagSeguro::Transaction do
48
48
 
49
49
  context "when request fails" do
50
50
  before do
51
- allow(request).to receive(:success?).and_return(false)
52
- allow(request).to receive(:bad_request?).and_return(true)
53
- allow(request).to receive(:not_found?).and_return(false)
51
+ allow(request).to receive_messages(
52
+ success?: false,
53
+ error?: true,
54
+ error: Aitch::BadRequestError
55
+ )
54
56
  end
57
+
55
58
  let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
56
59
 
57
60
  it "returns an instance of Transaction" do
@@ -72,7 +75,7 @@ describe PagSeguro::Transaction do
72
75
  end
73
76
  let(:parsed_xml) { Nokogiri::XML(raw_xml) }
74
77
  let(:request) do
75
- double(:Request, xml?: true, success?: true, unauthorized?: false,
78
+ double(:Request, xml?: true, success?: true, error?: false,
76
79
  bad_request?: false, body: raw_xml, data: parsed_xml)
77
80
  end
78
81
  subject { PagSeguro::Transaction.find_by_code("CODE") }
@@ -95,10 +98,13 @@ describe PagSeguro::Transaction do
95
98
 
96
99
  context "when request fails" do
97
100
  before do
98
- allow(request).to receive(:success?).and_return(false)
99
- allow(request).to receive(:bad_request?).and_return(true)
100
- allow(request).to receive(:not_found?).and_return(false)
101
+ allow(request).to receive_messages(
102
+ success?: false,
103
+ error?: true,
104
+ error: Aitch::BadRequestError
105
+ )
101
106
  end
107
+
102
108
  let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
103
109
 
104
110
  it "returns an instance of Transaction" do
@@ -113,10 +119,10 @@ describe PagSeguro::Transaction do
113
119
 
114
120
  describe ".find_by_code" do
115
121
  it 'finds a transaction by its code' do
116
- PagSeguro::Transaction.stub :load_from_response
122
+ allow(PagSeguro::Transaction).to receive(:load_from_response)
117
123
 
118
- PagSeguro::Request
119
- .should_receive(:get)
124
+ expect(PagSeguro::Request)
125
+ .to receive(:get)
120
126
  .with("transactions/CODE", 'v3', {})
121
127
  .and_return(double.as_null_object)
122
128
 
@@ -132,8 +138,7 @@ describe PagSeguro::Transaction do
132
138
  end
133
139
  let(:parsed_xml) { Nokogiri::XML(raw_xml) }
134
140
  let(:response) do
135
- double(:Response, xml?: true, success?: true, unauthorized?: false,
136
- bad_request?: false, body: raw_xml, data: parsed_xml)
141
+ double(:Response, xml?: true, success?: true, errors?: false, body: raw_xml, data: parsed_xml)
137
142
  end
138
143
  subject { PagSeguro::Transaction.find_status_history("CODE") }
139
144
 
@@ -155,9 +160,11 @@ describe PagSeguro::Transaction do
155
160
 
156
161
  context "when request fails" do
157
162
  before do
158
- allow(response).to receive(:success?).and_return(false)
159
- allow(response).to receive(:bad_request?).and_return(true)
160
- allow(response).to receive(:not_found?).and_return(false)
163
+ allow(response).to receive_messages(
164
+ success?: false,
165
+ error?: true,
166
+ error: Aitch::NotFoundError
167
+ )
161
168
  end
162
169
  let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
163
170
 
@@ -174,10 +181,10 @@ describe PagSeguro::Transaction do
174
181
  describe ".find_by_date" do
175
182
  it "initializes search with default options" do
176
183
  now = Time.now
177
- Time.stub now: now
184
+ allow(Time).to receive(:now).and_return(now)
178
185
 
179
- PagSeguro::SearchByDate
180
- .should_receive(:new)
186
+ expect(PagSeguro::SearchByDate)
187
+ .to receive(:new)
181
188
  .with("transactions",
182
189
  hash_including(starts_at: now - 86400, ends_at: now, per_page: 50), 0)
183
190
 
@@ -189,8 +196,8 @@ describe PagSeguro::Transaction do
189
196
  ends_at = starts_at + 180
190
197
  page = 0
191
198
 
192
- PagSeguro::SearchByDate
193
- .should_receive(:new)
199
+ expect(PagSeguro::SearchByDate)
200
+ .to receive(:new)
194
201
  .with(
195
202
  "transactions",
196
203
  hash_including(per_page: 10, starts_at: starts_at, ends_at: ends_at),
@@ -207,10 +214,10 @@ describe PagSeguro::Transaction do
207
214
  describe ".find_by_reference" do
208
215
  it 'initializes search with given reference code' do
209
216
  now = Time.now
210
- Time.stub now: now
217
+ allow(Time).to receive(:now).and_return(now)
211
218
 
212
- PagSeguro::SearchByReference
213
- .should_receive(:new)
219
+ expect(PagSeguro::SearchByReference)
220
+ .to receive(:new)
214
221
  .with(
215
222
  "transactions",
216
223
  hash_including(reference: 'ref1234'),
@@ -223,10 +230,10 @@ describe PagSeguro::Transaction do
223
230
  describe ".find_abandoned" do
224
231
  it "initializes search with default options" do
225
232
  now = Time.now
226
- Time.stub now: now
233
+ allow(Time).to receive(:now).and_return(now)
227
234
 
228
- PagSeguro::SearchAbandoned
229
- .should_receive(:new)
235
+ expect(PagSeguro::SearchAbandoned)
236
+ .to receive(:new)
230
237
  .with(
231
238
  "transactions/abandoned",
232
239
  hash_including(per_page: 50, starts_at: now - 86400, ends_at: now - 900),
@@ -241,8 +248,8 @@ describe PagSeguro::Transaction do
241
248
  ends_at = starts_at + 180
242
249
  page = 1
243
250
 
244
- PagSeguro::SearchAbandoned
245
- .should_receive(:new)
251
+ expect(PagSeguro::SearchAbandoned)
252
+ .to receive(:new)
246
253
  .with(
247
254
  "transactions/abandoned",
248
255
  hash_including(per_page: 10, starts_at: starts_at, ends_at: ends_at),
@@ -261,8 +268,8 @@ describe PagSeguro::Transaction do
261
268
  ends_at = starts_at + 180
262
269
  page = 1
263
270
 
264
- PagSeguro::SearchAbandoned
265
- .should_receive(:new)
271
+ expect(PagSeguro::SearchAbandoned)
272
+ .to receive(:new)
266
273
  .with(
267
274
  "transactions/abandoned",
268
275
  hash_including(per_page: 10, starts_at: starts_at, ends_at: ends_at, credentials: credentials),
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- require "simplecov"
2
- SimpleCov.start
3
-
4
1
  require "bundler/setup"
5
2
  Bundler.require(:default, :development)
6
3
 
@@ -3,8 +3,8 @@ module EnsureTypeMacro
3
3
  it "ensures that #{attr.inspect} coerces hash to #{klass}" do
4
4
  options = double(:options)
5
5
 
6
- klass
7
- .should_receive(:new)
6
+ expect(klass)
7
+ .to receive(:new)
8
8
  .with(options)
9
9
  .and_return("INSTANCE")
10
10
 
@@ -12,6 +12,24 @@ module EnsureTypeMacro
12
12
  expect(instance.public_send(attr)).to eql("INSTANCE")
13
13
  end
14
14
  end
15
+
16
+ def it_ensures_collection_type(klass, attr, options)
17
+ context "ensures that ##{attr} coerces a collection and return" do
18
+ before do
19
+ subject.send("#{attr}=", options)
20
+ end
21
+
22
+ it "correct count of objects" do
23
+ expect(subject.send(attr).size).to eq options.size
24
+ end
25
+
26
+ it "all objects of #{attr} should be an instance of #{klass}" do
27
+ subject.send(attr).each do |object|
28
+ expect(object).to be_an_instance_of klass
29
+ end
30
+ end
31
+ end
32
+ end
15
33
  end
16
34
 
17
35
  RSpec.configure {|c| c.extend(EnsureTypeMacro) }
@@ -9,7 +9,7 @@ require_relative "boot"
9
9
  #
10
10
  # P.S: See the boot file example for more details
11
11
 
12
- refund = PagSeguro::Refund.new
12
+ refund = PagSeguro::TransactionRefund.new
13
13
  refund.transaction_code = "D5D5BE444148407891E497B421975599"
14
14
 
15
15
  # Partial refund
metadata CHANGED
@@ -1,156 +1,142 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro-oficial
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-16 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aitch
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.1
19
+ version: '0.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.1
26
+ version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.6'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: i18n
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '0.7'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '0.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.8'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.8'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.7'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '1.7'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '10.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '10.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '3.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '3.0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: autotest-standalone
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: simplecov
112
+ name: fakeweb
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ">="
115
+ - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '0'
117
+ version: '1.3'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ">="
122
+ - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: '1.3'
139
125
  - !ruby/object:Gem::Dependency
140
- name: fakeweb
126
+ name: activesupport
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ">="
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '0'
131
+ version: '4.0'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ">="
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '0'
153
- description: Biblioteca oficial de integração PagSeguro em Ruby
138
+ version: '4.0'
139
+ description: Biblioteca oficial de integração via API com o PagSeguro
154
140
  email:
155
141
  - fnando.vieira@gmail.com
156
142
  executables: []
@@ -166,27 +152,31 @@ files:
166
152
  - README.md
167
153
  - Rakefile
168
154
  - docs/transparent_checkout.md
169
- - examples/authorization/authorization.rb
170
- - examples/authorization/authorization_by_code.rb
171
- - examples/authorization/authorization_by_notification_code.rb
155
+ - examples/authorization/create_authorization.rb
156
+ - examples/authorization/create_authorization_with_account.rb
157
+ - examples/authorization/search/search_authorization_by_code.rb
158
+ - examples/authorization/search/search_authorization_by_date.rb
159
+ - examples/authorization/search/search_authorization_by_notification_code.rb
160
+ - examples/authorization/search/search_authorization_by_reference.rb
172
161
  - examples/boot.rb
162
+ - examples/checkout/create_payment_request.rb
163
+ - examples/checkout/search/search_abandoned_transactions.rb
164
+ - examples/checkout/search/search_transaction_by_code.rb
165
+ - examples/checkout/search/search_transaction_by_notification_code.rb
166
+ - examples/checkout/search/search_transaction_by_reference.rb
167
+ - examples/checkout/search/search_transaction_status_history.rb
168
+ - examples/checkout/search/search_transactions_by_date.rb
173
169
  - examples/create_session.rb
174
- - examples/installment.rb
175
- - examples/payment_request.rb
176
- - examples/refund.rb
177
- - examples/transaction/abandoned_transactions.rb
178
- - examples/transaction/boleto_transaction_request.rb
179
- - examples/transaction/credit_card_transaction_request.rb
180
- - examples/transaction/invalid_transaction_by_notification_code.rb
181
- - examples/transaction/online_debit_transaction.rb
182
- - examples/transaction/transaction_by_code.rb
183
- - examples/transaction/transaction_by_notification_code.rb
184
- - examples/transaction/transaction_by_reference.rb
185
- - examples/transaction/transaction_cancellation.rb
186
- - examples/transaction/transaction_status_history.rb
187
- - examples/transaction/transactions_by_date.rb
170
+ - examples/direct/create_transaction_using_boleto.rb
171
+ - examples/direct/create_transaction_using_credit_card.rb
172
+ - examples/direct/create_transaction_using_online_debit.rb
173
+ - examples/get_installments.rb
174
+ - examples/request_transaction_cancellation.rb
175
+ - examples/split_payment/create_authorization.rb
176
+ - examples/split_payment/create_payment_request.rb
188
177
  - lib/pagseguro-oficial.rb
189
178
  - lib/pagseguro.rb
179
+ - lib/pagseguro/account.rb
190
180
  - lib/pagseguro/account_credentials.rb
191
181
  - lib/pagseguro/address.rb
192
182
  - lib/pagseguro/application_credentials.rb
@@ -201,12 +191,15 @@ files:
201
191
  - lib/pagseguro/authorization_request/response_serializer.rb
202
192
  - lib/pagseguro/bank.rb
203
193
  - lib/pagseguro/boleto_transaction_request.rb
194
+ - lib/pagseguro/company.rb
204
195
  - lib/pagseguro/config.rb
205
196
  - lib/pagseguro/credit_card_transaction_request.rb
206
197
  - lib/pagseguro/creditor_fee.rb
207
198
  - lib/pagseguro/document.rb
199
+ - lib/pagseguro/documents.rb
208
200
  - lib/pagseguro/errors.rb
209
201
  - lib/pagseguro/exceptions.rb
202
+ - lib/pagseguro/extensions/collection_object.rb
210
203
  - lib/pagseguro/extensions/credentiable.rb
211
204
  - lib/pagseguro/extensions/ensure_type.rb
212
205
  - lib/pagseguro/extensions/mass_assignment.rb
@@ -222,20 +215,20 @@ files:
222
215
  - lib/pagseguro/notification/authorization.rb
223
216
  - lib/pagseguro/notification/transaction.rb
224
217
  - lib/pagseguro/online_debit_transaction_request.rb
218
+ - lib/pagseguro/partner.rb
225
219
  - lib/pagseguro/payment_method.rb
226
220
  - lib/pagseguro/payment_release.rb
227
221
  - lib/pagseguro/payment_releases.rb
228
222
  - lib/pagseguro/payment_request.rb
223
+ - lib/pagseguro/payment_request/request_serializer.rb
229
224
  - lib/pagseguro/payment_request/response.rb
230
- - lib/pagseguro/payment_request/serializer.rb
231
225
  - lib/pagseguro/payment_status.rb
232
226
  - lib/pagseguro/permission.rb
227
+ - lib/pagseguro/person.rb
233
228
  - lib/pagseguro/phone.rb
234
- - lib/pagseguro/refund.rb
235
- - lib/pagseguro/refund/request_serializer.rb
236
- - lib/pagseguro/refund/response.rb
237
- - lib/pagseguro/refund/response_serializer.rb
238
- - lib/pagseguro/refund/serializer.rb
229
+ - lib/pagseguro/phones.rb
230
+ - lib/pagseguro/receiver.rb
231
+ - lib/pagseguro/receiver_split.rb
239
232
  - lib/pagseguro/request.rb
240
233
  - lib/pagseguro/sender.rb
241
234
  - lib/pagseguro/session.rb
@@ -255,8 +248,11 @@ files:
255
248
  - lib/pagseguro/transaction_cancellation/request_serializer.rb
256
249
  - lib/pagseguro/transaction_cancellation/response.rb
257
250
  - lib/pagseguro/transaction_cancellation/response_serializer.rb
258
- - lib/pagseguro/transaction_cancellation/serializer.rb
259
251
  - lib/pagseguro/transaction_installment.rb
252
+ - lib/pagseguro/transaction_refund.rb
253
+ - lib/pagseguro/transaction_refund/request_serializer.rb
254
+ - lib/pagseguro/transaction_refund/response.rb
255
+ - lib/pagseguro/transaction_refund/response_serializer.rb
260
256
  - lib/pagseguro/transaction_request.rb
261
257
  - lib/pagseguro/transaction_request/request_serializer.rb
262
258
  - lib/pagseguro/transaction_request/response.rb
@@ -266,6 +262,9 @@ files:
266
262
  - locales/pt-BR.yml
267
263
  - pagseguro-oficial.gemspec
268
264
  - spec/fixtures/authorization/find_authorization.xml
265
+ - spec/fixtures/authorization/search_authorization.xml
266
+ - spec/fixtures/authorization_request/authorization_request.xml
267
+ - spec/fixtures/authorization_request/authorization_request_with_account.xml
269
268
  - spec/fixtures/authorization_request/success.xml
270
269
  - spec/fixtures/by_date/success.xml
271
270
  - spec/fixtures/installment/success.xml
@@ -281,6 +280,7 @@ files:
281
280
  - spec/fixtures/transactions/status_history.xml
282
281
  - spec/fixtures/transactions/success.xml
283
282
  - spec/pagseguro/account_credentials_spec.rb
283
+ - spec/pagseguro/account_spec.rb
284
284
  - spec/pagseguro/address_spec.rb
285
285
  - spec/pagseguro/application_credentials_spec.rb
286
286
  - spec/pagseguro/authorization/collection_spec.rb
@@ -294,11 +294,14 @@ files:
294
294
  - spec/pagseguro/authorization_spec.rb
295
295
  - spec/pagseguro/bank_spec.rb
296
296
  - spec/pagseguro/boleto_transaction_request_spec.rb
297
+ - spec/pagseguro/company_spec.rb
297
298
  - spec/pagseguro/config_spec.rb
298
299
  - spec/pagseguro/credit_card_transaction_request_spec.rb
299
300
  - spec/pagseguro/creditor_fee_spec.rb
300
301
  - spec/pagseguro/document_spec.rb
302
+ - spec/pagseguro/documents_spec.rb
301
303
  - spec/pagseguro/errors_spec.rb
304
+ - spec/pagseguro/extensions/collection_object_spec.rb
302
305
  - spec/pagseguro/features/create_session_spec.rb
303
306
  - spec/pagseguro/features/create_transaction_request_spec.rb
304
307
  - spec/pagseguro/holder_spec.rb
@@ -312,20 +315,20 @@ files:
312
315
  - spec/pagseguro/notification_spec.rb
313
316
  - spec/pagseguro/online_debit_transaction_request_spec.rb
314
317
  - spec/pagseguro/pagseguro_spec.rb
318
+ - spec/pagseguro/partner_spec.rb
315
319
  - spec/pagseguro/payment_method_spec.rb
316
320
  - spec/pagseguro/payment_release_spec.rb
317
321
  - spec/pagseguro/payment_releases_spec.rb
322
+ - spec/pagseguro/payment_request/request_serializer_spec.rb
318
323
  - spec/pagseguro/payment_request/response_spec.rb
319
- - spec/pagseguro/payment_request/serializer_spec.rb
320
324
  - spec/pagseguro/payment_request_spec.rb
321
325
  - spec/pagseguro/payment_status_spec.rb
322
326
  - spec/pagseguro/permission_spec.rb
327
+ - spec/pagseguro/person_spec.rb
323
328
  - spec/pagseguro/phone_spec.rb
324
- - spec/pagseguro/refund/request_serializer_spec.rb
325
- - spec/pagseguro/refund/response_serializer_spec.rb
326
- - spec/pagseguro/refund/response_spec.rb
327
- - spec/pagseguro/refund/serializer_spec.rb
328
- - spec/pagseguro/refund_spec.rb
329
+ - spec/pagseguro/phones_spec.rb
330
+ - spec/pagseguro/receiver_spec.rb
331
+ - spec/pagseguro/receiver_split_spec.rb
329
332
  - spec/pagseguro/request_spec.rb
330
333
  - spec/pagseguro/sender_spec.rb
331
334
  - spec/pagseguro/session/response_serializer_spec.rb
@@ -343,9 +346,12 @@ files:
343
346
  - spec/pagseguro/transaction_cancellation/request_serializer_spec.rb
344
347
  - spec/pagseguro/transaction_cancellation/response_serializer_spec.rb
345
348
  - spec/pagseguro/transaction_cancellation/response_spec.rb
346
- - spec/pagseguro/transaction_cancellation/serializer_spec.rb
347
349
  - spec/pagseguro/transaction_cancellation_spec.rb
348
350
  - spec/pagseguro/transaction_installment_spec.rb
351
+ - spec/pagseguro/transaction_refund/request_serializer_spec.rb
352
+ - spec/pagseguro/transaction_refund/response_serializer_spec.rb
353
+ - spec/pagseguro/transaction_refund/response_spec.rb
354
+ - spec/pagseguro/transaction_refund_spec.rb
349
355
  - spec/pagseguro/transaction_request/request_serializer_spec.rb
350
356
  - spec/pagseguro/transaction_request/response_serializer_spec.rb
351
357
  - spec/pagseguro/transaction_request/response_spec.rb
@@ -357,6 +363,7 @@ files:
357
363
  - spec/support/helpers.rb
358
364
  - spec/support/mass_assignment_macro.rb
359
365
  - spec/support/shared_examples_for_configuration.rb
366
+ - transaction/transaction_refund.rb
360
367
  homepage: http://www.pagseguro.com.br
361
368
  licenses:
362
369
  - ASL
@@ -377,12 +384,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
377
384
  version: '0'
378
385
  requirements: []
379
386
  rubyforge_project:
380
- rubygems_version: 2.4.5.1
387
+ rubygems_version: 2.5.1
381
388
  signing_key:
382
389
  specification_version: 4
383
- summary: Biblioteca oficial de integração PagSeguro em Ruby
390
+ summary: Biblioteca de integração com o PagSeguro
384
391
  test_files:
385
392
  - spec/fixtures/authorization/find_authorization.xml
393
+ - spec/fixtures/authorization/search_authorization.xml
394
+ - spec/fixtures/authorization_request/authorization_request.xml
395
+ - spec/fixtures/authorization_request/authorization_request_with_account.xml
386
396
  - spec/fixtures/authorization_request/success.xml
387
397
  - spec/fixtures/by_date/success.xml
388
398
  - spec/fixtures/installment/success.xml
@@ -398,6 +408,7 @@ test_files:
398
408
  - spec/fixtures/transactions/status_history.xml
399
409
  - spec/fixtures/transactions/success.xml
400
410
  - spec/pagseguro/account_credentials_spec.rb
411
+ - spec/pagseguro/account_spec.rb
401
412
  - spec/pagseguro/address_spec.rb
402
413
  - spec/pagseguro/application_credentials_spec.rb
403
414
  - spec/pagseguro/authorization/collection_spec.rb
@@ -411,11 +422,14 @@ test_files:
411
422
  - spec/pagseguro/authorization_spec.rb
412
423
  - spec/pagseguro/bank_spec.rb
413
424
  - spec/pagseguro/boleto_transaction_request_spec.rb
425
+ - spec/pagseguro/company_spec.rb
414
426
  - spec/pagseguro/config_spec.rb
415
427
  - spec/pagseguro/credit_card_transaction_request_spec.rb
416
428
  - spec/pagseguro/creditor_fee_spec.rb
417
429
  - spec/pagseguro/document_spec.rb
430
+ - spec/pagseguro/documents_spec.rb
418
431
  - spec/pagseguro/errors_spec.rb
432
+ - spec/pagseguro/extensions/collection_object_spec.rb
419
433
  - spec/pagseguro/features/create_session_spec.rb
420
434
  - spec/pagseguro/features/create_transaction_request_spec.rb
421
435
  - spec/pagseguro/holder_spec.rb
@@ -429,20 +443,20 @@ test_files:
429
443
  - spec/pagseguro/notification_spec.rb
430
444
  - spec/pagseguro/online_debit_transaction_request_spec.rb
431
445
  - spec/pagseguro/pagseguro_spec.rb
446
+ - spec/pagseguro/partner_spec.rb
432
447
  - spec/pagseguro/payment_method_spec.rb
433
448
  - spec/pagseguro/payment_release_spec.rb
434
449
  - spec/pagseguro/payment_releases_spec.rb
450
+ - spec/pagseguro/payment_request/request_serializer_spec.rb
435
451
  - spec/pagseguro/payment_request/response_spec.rb
436
- - spec/pagseguro/payment_request/serializer_spec.rb
437
452
  - spec/pagseguro/payment_request_spec.rb
438
453
  - spec/pagseguro/payment_status_spec.rb
439
454
  - spec/pagseguro/permission_spec.rb
455
+ - spec/pagseguro/person_spec.rb
440
456
  - spec/pagseguro/phone_spec.rb
441
- - spec/pagseguro/refund/request_serializer_spec.rb
442
- - spec/pagseguro/refund/response_serializer_spec.rb
443
- - spec/pagseguro/refund/response_spec.rb
444
- - spec/pagseguro/refund/serializer_spec.rb
445
- - spec/pagseguro/refund_spec.rb
457
+ - spec/pagseguro/phones_spec.rb
458
+ - spec/pagseguro/receiver_spec.rb
459
+ - spec/pagseguro/receiver_split_spec.rb
446
460
  - spec/pagseguro/request_spec.rb
447
461
  - spec/pagseguro/sender_spec.rb
448
462
  - spec/pagseguro/session/response_serializer_spec.rb
@@ -460,9 +474,12 @@ test_files:
460
474
  - spec/pagseguro/transaction_cancellation/request_serializer_spec.rb
461
475
  - spec/pagseguro/transaction_cancellation/response_serializer_spec.rb
462
476
  - spec/pagseguro/transaction_cancellation/response_spec.rb
463
- - spec/pagseguro/transaction_cancellation/serializer_spec.rb
464
477
  - spec/pagseguro/transaction_cancellation_spec.rb
465
478
  - spec/pagseguro/transaction_installment_spec.rb
479
+ - spec/pagseguro/transaction_refund/request_serializer_spec.rb
480
+ - spec/pagseguro/transaction_refund/response_serializer_spec.rb
481
+ - spec/pagseguro/transaction_refund/response_spec.rb
482
+ - spec/pagseguro/transaction_refund_spec.rb
466
483
  - spec/pagseguro/transaction_request/request_serializer_spec.rb
467
484
  - spec/pagseguro/transaction_request/response_serializer_spec.rb
468
485
  - spec/pagseguro/transaction_request/response_spec.rb
@@ -474,4 +491,3 @@ test_files:
474
491
  - spec/support/helpers.rb
475
492
  - spec/support/mass_assignment_macro.rb
476
493
  - spec/support/shared_examples_for_configuration.rb
477
- has_rdoc: