braintree 2.98.0 → 4.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/braintree.gemspec +7 -4
  4. data/lib/braintree/account_updater_daily_report.rb +4 -4
  5. data/lib/braintree/ach_mandate.rb +1 -1
  6. data/lib/braintree/add_on_gateway.rb +1 -1
  7. data/lib/braintree/address.rb +7 -27
  8. data/lib/braintree/address_gateway.rb +8 -7
  9. data/lib/braintree/advanced_search.rb +11 -12
  10. data/lib/braintree/apple_pay.rb +4 -4
  11. data/lib/braintree/apple_pay_card.rb +18 -4
  12. data/lib/braintree/apple_pay_options.rb +4 -4
  13. data/lib/braintree/authorization_adjustment.rb +4 -4
  14. data/lib/braintree/base_module.rb +11 -1
  15. data/lib/braintree/bin_data.rb +10 -3
  16. data/lib/braintree/client_token.rb +1 -1
  17. data/lib/braintree/client_token_gateway.rb +4 -3
  18. data/lib/braintree/configuration.rb +35 -35
  19. data/lib/braintree/connected_merchant_paypal_status_changed.rb +2 -2
  20. data/lib/braintree/connected_merchant_status_transitioned.rb +2 -2
  21. data/lib/braintree/credit_card.rb +40 -86
  22. data/lib/braintree/credit_card_gateway.rb +58 -44
  23. data/lib/braintree/credit_card_verification.rb +39 -20
  24. data/lib/braintree/credit_card_verification_gateway.rb +35 -5
  25. data/lib/braintree/credit_card_verification_search.rb +2 -2
  26. data/lib/braintree/customer.rb +23 -88
  27. data/lib/braintree/customer_gateway.rb +17 -32
  28. data/lib/braintree/customer_search.rb +2 -2
  29. data/lib/braintree/descriptor.rb +1 -1
  30. data/lib/braintree/digest.rb +1 -1
  31. data/lib/braintree/disbursement.rb +7 -7
  32. data/lib/braintree/discount_gateway.rb +1 -1
  33. data/lib/braintree/dispute/evidence.rb +1 -1
  34. data/lib/braintree/{transaction/coinbase_details.rb → dispute/paypal_message.rb} +5 -6
  35. data/lib/braintree/dispute/{history_event.rb → status_history.rb} +3 -1
  36. data/lib/braintree/dispute/transaction.rb +3 -1
  37. data/lib/braintree/dispute/transaction_details.rb +1 -1
  38. data/lib/braintree/dispute.rb +47 -6
  39. data/lib/braintree/dispute_gateway.rb +5 -10
  40. data/lib/braintree/dispute_search.rb +8 -4
  41. data/lib/braintree/document_upload.rb +3 -3
  42. data/lib/braintree/document_upload_gateway.rb +3 -3
  43. data/lib/braintree/enriched_customer_data.rb +21 -0
  44. data/lib/braintree/error_codes.rb +217 -175
  45. data/lib/braintree/error_result.rb +2 -3
  46. data/lib/braintree/errors.rb +3 -3
  47. data/lib/braintree/exceptions.rb +6 -5
  48. data/lib/braintree/exchange_rate.rb +13 -0
  49. data/lib/braintree/exchange_rate_quote.rb +24 -0
  50. data/lib/braintree/exchange_rate_quote_gateway.rb +35 -0
  51. data/lib/braintree/exchange_rate_quote_input.rb +21 -0
  52. data/lib/braintree/exchange_rate_quote_request.rb +18 -0
  53. data/lib/braintree/exchange_rate_quote_response.rb +18 -0
  54. data/lib/braintree/facilitated_details.rb +1 -1
  55. data/lib/braintree/facilitator_details.rb +1 -1
  56. data/lib/braintree/gateway.rb +6 -12
  57. data/lib/braintree/{android_pay_card.rb → google_pay_card.rb} +18 -5
  58. data/lib/braintree/granted_payment_instrument_update.rb +2 -2
  59. data/lib/braintree/graphql_client.rb +14 -8
  60. data/lib/braintree/http.rb +9 -10
  61. data/lib/braintree/local_payment_completed/blik_alias.rb +23 -0
  62. data/lib/braintree/local_payment_completed.rb +10 -5
  63. data/lib/braintree/local_payment_expired.rb +21 -0
  64. data/lib/braintree/local_payment_funded.rb +22 -0
  65. data/lib/braintree/local_payment_reversed.rb +19 -0
  66. data/lib/braintree/merchant.rb +4 -4
  67. data/lib/braintree/merchant_account.rb +3 -3
  68. data/lib/braintree/merchant_account_gateway.rb +10 -8
  69. data/lib/braintree/merchant_gateway.rb +1 -1
  70. data/lib/braintree/meta_checkout_card.rb +89 -0
  71. data/lib/braintree/meta_checkout_token.rb +88 -0
  72. data/lib/braintree/modification.rb +4 -4
  73. data/lib/braintree/oauth_credentials.rb +4 -4
  74. data/lib/braintree/oauth_gateway.rb +5 -5
  75. data/lib/braintree/paginated_collection.rb +2 -2
  76. data/lib/braintree/paginated_result.rb +1 -1
  77. data/lib/braintree/payment_instrument_type.rb +14 -13
  78. data/lib/braintree/payment_method_customer_data_updated_metadata.rb +24 -0
  79. data/lib/braintree/payment_method_gateway.rb +52 -22
  80. data/lib/braintree/payment_method_nonce.rb +12 -7
  81. data/lib/braintree/payment_method_nonce_details.rb +40 -0
  82. data/lib/braintree/payment_method_nonce_details_payer_info.rb +32 -0
  83. data/lib/braintree/payment_method_nonce_gateway.rb +14 -3
  84. data/lib/braintree/payment_method_parser.rb +4 -7
  85. data/lib/braintree/paypal_account.rb +3 -2
  86. data/lib/braintree/paypal_account_gateway.rb +5 -5
  87. data/lib/braintree/plan.rb +22 -2
  88. data/lib/braintree/plan_gateway.rb +101 -1
  89. data/lib/braintree/processor_response_types.rb +3 -3
  90. data/lib/braintree/resource_collection.rb +10 -5
  91. data/lib/braintree/revoked_payment_method_metadata.rb +2 -2
  92. data/lib/braintree/risk_data/liability_shift.rb +22 -0
  93. data/lib/braintree/risk_data.rb +10 -3
  94. data/lib/braintree/samsung_pay_card.rb +8 -6
  95. data/lib/braintree/sepa_direct_debit_account.rb +60 -0
  96. data/lib/braintree/sepa_direct_debit_account_gateway.rb +25 -0
  97. data/lib/braintree/sepa_direct_debit_account_nonce_details.rb +28 -0
  98. data/lib/braintree/settlement_batch_summary.rb +2 -2
  99. data/lib/braintree/settlement_batch_summary_gateway.rb +1 -1
  100. data/lib/braintree/sha256_digest.rb +1 -1
  101. data/lib/braintree/subscription/status_details.rb +1 -1
  102. data/lib/braintree/subscription.rb +13 -13
  103. data/lib/braintree/subscription_gateway.rb +6 -6
  104. data/lib/braintree/subscription_search.rb +1 -1
  105. data/lib/braintree/successful_result.rb +5 -4
  106. data/lib/braintree/test/authentication_id.rb +21 -0
  107. data/lib/braintree/test/credit_card.rb +9 -10
  108. data/lib/braintree/test/merchant_account.rb +1 -1
  109. data/lib/braintree/test/nonce.rb +27 -20
  110. data/lib/braintree/test/transaction_amounts.rb +2 -3
  111. data/lib/braintree/test/venmo_sdk.rb +2 -0
  112. data/lib/braintree/testing_gateway.rb +1 -1
  113. data/lib/braintree/three_d_secure_info.rb +23 -11
  114. data/lib/braintree/transaction/address_details.rb +14 -1
  115. data/lib/braintree/transaction/apple_pay_details.rb +13 -10
  116. data/lib/braintree/transaction/credit_card_details.rb +8 -1
  117. data/lib/braintree/transaction/customer_details.rb +3 -2
  118. data/lib/braintree/transaction/disbursement_details.rb +2 -1
  119. data/lib/braintree/transaction/{android_pay_details.rb → google_pay_details.rb} +6 -1
  120. data/lib/braintree/transaction/installment/adjustment.rb +33 -0
  121. data/lib/braintree/transaction/installment.rb +28 -0
  122. data/lib/braintree/transaction/local_payment_details.rb +3 -0
  123. data/lib/braintree/transaction/meta_checkout_card_details.rb +52 -0
  124. data/lib/braintree/transaction/meta_checkout_token_details.rb +54 -0
  125. data/lib/braintree/transaction/package_details.rb +19 -0
  126. data/lib/braintree/transaction/payment_receipt/card_present_data.rb +36 -0
  127. data/lib/braintree/transaction/payment_receipt/merchant_address.rb +19 -0
  128. data/lib/braintree/transaction/payment_receipt.rb +31 -0
  129. data/lib/braintree/transaction/paypal_details.rb +5 -0
  130. data/lib/braintree/transaction/samsung_pay_card_details.rb +3 -1
  131. data/lib/braintree/transaction/sepa_direct_debit_account_details.rb +27 -0
  132. data/lib/braintree/transaction/status_details.rb +1 -1
  133. data/lib/braintree/transaction/subscription_details.rb +3 -1
  134. data/lib/braintree/transaction/us_bank_account_details.rb +2 -1
  135. data/lib/braintree/transaction/visa_checkout_card_details.rb +1 -1
  136. data/lib/braintree/transaction.rb +119 -128
  137. data/lib/braintree/transaction_gateway.rb +138 -64
  138. data/lib/braintree/transaction_line_item.rb +14 -11
  139. data/lib/braintree/transaction_line_item_gateway.rb +1 -1
  140. data/lib/braintree/transaction_review.rb +18 -0
  141. data/lib/braintree/transaction_search.rb +11 -7
  142. data/lib/braintree/unknown_payment_method.rb +2 -2
  143. data/lib/braintree/us_bank_account.rb +5 -5
  144. data/lib/braintree/us_bank_account_verification.rb +24 -16
  145. data/lib/braintree/us_bank_account_verification_gateway.rb +1 -1
  146. data/lib/braintree/us_bank_account_verification_search.rb +1 -1
  147. data/lib/braintree/util.rb +25 -10
  148. data/lib/braintree/validation_error.rb +1 -1
  149. data/lib/braintree/validation_error_collection.rb +3 -3
  150. data/lib/braintree/venmo_account.rb +4 -4
  151. data/lib/braintree/venmo_profile_data.rb +25 -0
  152. data/lib/braintree/version.rb +2 -2
  153. data/lib/braintree/visa_checkout_card.rb +8 -8
  154. data/lib/braintree/webhook_notification.rb +55 -33
  155. data/lib/braintree/webhook_notification_gateway.rb +9 -9
  156. data/lib/braintree/webhook_testing.rb +1 -1
  157. data/lib/braintree/webhook_testing_gateway.rb +569 -46
  158. data/lib/braintree/xml/generator.rb +6 -5
  159. data/lib/braintree/xml/libxml.rb +1 -1
  160. data/lib/braintree/xml/parser.rb +24 -37
  161. data/lib/braintree/xml/rexml.rb +6 -7
  162. data/lib/braintree/xml.rb +1 -1
  163. data/lib/braintree.rb +41 -24
  164. data/lib/ssl/api_braintreegateway_com.ca.crt +401 -168
  165. data/spec/integration/braintree/add_on_spec.rb +10 -10
  166. data/spec/integration/braintree/address_spec.rb +101 -178
  167. data/spec/integration/braintree/advanced_search_spec.rb +93 -93
  168. data/spec/integration/braintree/apple_pay_spec.rb +12 -12
  169. data/spec/integration/braintree/braintree_gateway_spec.rb +2 -1
  170. data/spec/integration/braintree/client_api/client_token_spec.rb +279 -62
  171. data/spec/integration/braintree/client_api/spec_helper.rb +99 -73
  172. data/spec/integration/braintree/credit_card_spec.rb +522 -821
  173. data/spec/integration/braintree/credit_card_verification_search_spec.rb +18 -18
  174. data/spec/integration/braintree/credit_card_verification_spec.rb +219 -30
  175. data/spec/integration/braintree/customer_search_spec.rb +28 -28
  176. data/spec/integration/braintree/customer_spec.rb +840 -757
  177. data/spec/integration/braintree/disbursement_spec.rb +2 -2
  178. data/spec/integration/braintree/discount_spec.rb +9 -9
  179. data/spec/integration/braintree/dispute_search_spec.rb +45 -9
  180. data/spec/integration/braintree/dispute_spec.rb +109 -82
  181. data/spec/integration/braintree/document_upload_spec.rb +29 -17
  182. data/spec/integration/braintree/error_codes_spec.rb +3 -3
  183. data/spec/integration/braintree/exchange_rate_quote_spec.rb +97 -0
  184. data/spec/integration/braintree/graphql_client_spec.rb +0 -2
  185. data/spec/integration/braintree/http_spec.rb +31 -33
  186. data/spec/integration/braintree/merchant_account_spec.rb +155 -156
  187. data/spec/integration/braintree/merchant_spec.rb +71 -192
  188. data/spec/integration/braintree/oauth_spec.rb +72 -72
  189. data/spec/integration/braintree/package_tracking_spec.rb +130 -0
  190. data/spec/integration/braintree/payment_method_nonce_spec.rb +173 -78
  191. data/spec/integration/braintree/payment_method_spec.rb +953 -501
  192. data/spec/integration/braintree/payment_method_us_bank_account_spec.rb +147 -234
  193. data/spec/integration/braintree/paypal_account_spec.rb +74 -72
  194. data/spec/integration/braintree/plan_spec.rb +96 -15
  195. data/spec/integration/braintree/samsung_pay_card_spec.rb +75 -73
  196. data/spec/integration/braintree/sepa_direct_debit_account_spec.rb +194 -0
  197. data/spec/integration/braintree/settlement_batch_summary_spec.rb +18 -18
  198. data/spec/integration/braintree/subscription_spec.rb +507 -513
  199. data/spec/integration/braintree/test/transaction_amounts_spec.rb +4 -4
  200. data/spec/integration/braintree/test_transaction_spec.rb +29 -29
  201. data/spec/integration/braintree/transaction_line_item_spec.rb +12 -6
  202. data/spec/integration/braintree/transaction_search_spec.rb +410 -217
  203. data/spec/integration/braintree/transaction_spec.rb +3252 -2102
  204. data/spec/integration/braintree/transaction_us_bank_account_spec.rb +42 -278
  205. data/spec/integration/braintree/us_bank_account_spec.rb +36 -36
  206. data/spec/integration/braintree/us_bank_account_verification_search_spec.rb +25 -25
  207. data/spec/integration/braintree/us_bank_account_verification_spec.rb +41 -41
  208. data/spec/integration/braintree/visa_checkout_card_spec.rb +62 -62
  209. data/spec/integration/spec_helper.rb +22 -7
  210. data/spec/oauth_test_helper.rb +1 -1
  211. data/spec/script/httpsd.rb +6 -6
  212. data/spec/spec_helper.rb +15 -20
  213. data/spec/unit/braintree/address_spec.rb +9 -17
  214. data/spec/unit/braintree/apple_pay_card_spec.rb +110 -7
  215. data/spec/unit/braintree/base_module_spec.rb +4 -4
  216. data/spec/unit/braintree/client_token_spec.rb +6 -6
  217. data/spec/unit/braintree/configuration_spec.rb +84 -84
  218. data/spec/unit/braintree/credentials_parser_spec.rb +6 -6
  219. data/spec/unit/braintree/credit_card_spec.rb +91 -58
  220. data/spec/unit/braintree/credit_card_verification_gateway_spec.rb +56 -0
  221. data/spec/unit/braintree/credit_card_verification_search_spec.rb +10 -10
  222. data/spec/unit/braintree/credit_card_verification_spec.rb +40 -18
  223. data/spec/unit/braintree/customer_spec.rb +102 -57
  224. data/spec/unit/braintree/digest_spec.rb +5 -6
  225. data/spec/unit/braintree/disbursement_spec.rb +14 -14
  226. data/spec/unit/braintree/dispute_search_spec.rb +6 -2
  227. data/spec/unit/braintree/dispute_spec.rb +144 -66
  228. data/spec/unit/braintree/document_upload_spec.rb +8 -8
  229. data/spec/unit/braintree/enriched_customer_data_spec.rb +41 -0
  230. data/spec/unit/braintree/error_result_spec.rb +11 -11
  231. data/spec/unit/braintree/errors_spec.rb +17 -17
  232. data/spec/unit/braintree/exchange_rate_quote_input_spec.rb +42 -0
  233. data/spec/unit/braintree/exchange_rate_quote_request_spec.rb +82 -0
  234. data/spec/unit/braintree/exchange_rate_quote_response_spec.rb +52 -0
  235. data/spec/unit/braintree/exchange_rate_quote_spec.rb +42 -0
  236. data/spec/unit/braintree/exchange_rate_spec.rb +23 -0
  237. data/spec/unit/braintree/http_spec.rb +19 -17
  238. data/spec/unit/braintree/local_payment_completed_spec.rb +62 -8
  239. data/spec/unit/braintree/local_payment_expired_spec.rb +24 -0
  240. data/spec/unit/braintree/local_payment_funded_spec.rb +34 -0
  241. data/spec/unit/braintree/merchant_account_spec.rb +5 -5
  242. data/spec/unit/braintree/meta_checkout_card_details_spec.rb +60 -0
  243. data/spec/unit/braintree/meta_checkout_card_spec.rb +60 -0
  244. data/spec/unit/braintree/meta_checkout_token_details_spec.rb +63 -0
  245. data/spec/unit/braintree/meta_checkout_token_spec.rb +63 -0
  246. data/spec/unit/braintree/modification_spec.rb +1 -1
  247. data/spec/unit/braintree/package_tracking_spec.rb +77 -0
  248. data/spec/unit/braintree/payment_method_customer_data_updated_metadata_spec.rb +45 -0
  249. data/spec/unit/braintree/payment_method_nonce_details_payer_info_spec.rb +31 -0
  250. data/spec/unit/braintree/payment_method_nonce_details_spec.rb +51 -0
  251. data/spec/unit/braintree/payment_method_nonce_spec.rb +40 -0
  252. data/spec/unit/braintree/payment_method_spec.rb +20 -20
  253. data/spec/unit/braintree/paypal_account_spec.rb +16 -7
  254. data/spec/unit/braintree/resource_collection_spec.rb +34 -5
  255. data/spec/unit/braintree/risk_data/liability_shift.rb +26 -0
  256. data/spec/unit/braintree/risk_data_spec.rb +38 -8
  257. data/spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb +29 -0
  258. data/spec/unit/braintree/sepa_debit_account_spec.rb +86 -0
  259. data/spec/unit/braintree/sha256_digest_spec.rb +1 -1
  260. data/spec/unit/braintree/signature_service_spec.rb +2 -2
  261. data/spec/unit/braintree/subscription_search_spec.rb +18 -18
  262. data/spec/unit/braintree/subscription_spec.rb +8 -8
  263. data/spec/unit/braintree/successful_result_spec.rb +6 -6
  264. data/spec/unit/braintree/three_d_secure_info_spec.rb +37 -17
  265. data/spec/unit/braintree/transaction/credit_card_details_spec.rb +22 -6
  266. data/spec/unit/braintree/transaction/customer_details_spec.rb +3 -2
  267. data/spec/unit/braintree/transaction/deposit_details_spec.rb +4 -4
  268. data/spec/unit/braintree/transaction/installment_spec.rb +25 -0
  269. data/spec/unit/braintree/transaction/local_payment_details_spec.rb +36 -0
  270. data/spec/unit/braintree/transaction/payment_receipt_spec.rb +73 -0
  271. data/spec/unit/braintree/transaction/paypal_details_spec.rb +63 -0
  272. data/spec/unit/braintree/transaction/sepa_direct_debit_account_details_spec.rb +33 -0
  273. data/spec/unit/braintree/transaction_gateway_spec.rb +150 -0
  274. data/spec/unit/braintree/transaction_search_spec.rb +12 -12
  275. data/spec/unit/braintree/transaction_spec.rb +221 -124
  276. data/spec/unit/braintree/unknown_payment_method_spec.rb +4 -4
  277. data/spec/unit/braintree/us_bank_account_spec.rb +2 -2
  278. data/spec/unit/braintree/us_bank_account_verification_search_spec.rb +7 -7
  279. data/spec/unit/braintree/us_bank_account_verification_spec.rb +12 -7
  280. data/spec/unit/braintree/util_spec.rb +78 -44
  281. data/spec/unit/braintree/validation_error_collection_spec.rb +62 -62
  282. data/spec/unit/braintree/validation_error_spec.rb +4 -4
  283. data/spec/unit/braintree/venmo_profile_data_spec.rb +43 -0
  284. data/spec/unit/braintree/webhook_notification_spec.rb +434 -197
  285. data/spec/unit/braintree/xml/libxml_spec.rb +5 -5
  286. data/spec/unit/braintree/xml/parser_spec.rb +27 -22
  287. data/spec/unit/braintree/xml/rexml_spec.rb +5 -5
  288. data/spec/unit/braintree/xml_spec.rb +38 -38
  289. data/spec/unit/braintree_spec.rb +2 -2
  290. metadata +91 -30
  291. data/lib/braintree/amex_express_checkout_card.rb +0 -38
  292. data/lib/braintree/coinbase_account.rb +0 -34
  293. data/lib/braintree/europe_bank_account.rb +0 -36
  294. data/lib/braintree/europe_bank_account_gateway.rb +0 -17
  295. data/lib/braintree/ideal_payment.rb +0 -61
  296. data/lib/braintree/ideal_payment_gateway.rb +0 -19
  297. data/lib/braintree/masterpass_card.rb +0 -81
  298. data/lib/braintree/settlement_batch.rb +0 -0
  299. data/lib/braintree/transaction/amex_express_checkout_details.rb +0 -21
  300. data/lib/braintree/transaction/ideal_payment_details.rb +0 -19
  301. data/lib/braintree/transaction/masterpass_card_details.rb +0 -47
  302. data/lib/braintree/transparent_redirect.rb +0 -40
  303. data/lib/braintree/transparent_redirect_gateway.rb +0 -105
  304. data/spec/hacks/tcp_socket.rb +0 -18
  305. data/spec/integration/braintree/coinbase_spec.rb +0 -34
  306. data/spec/integration/braintree/masterpass_card_spec.rb +0 -97
  307. data/spec/integration/braintree/transparent_redirect_spec.rb +0 -268
  308. data/spec/unit/braintree/transparent_redirect_spec.rb +0 -223
@@ -6,7 +6,7 @@ describe Braintree::AdvancedSearch do
6
6
  :credit_card => {
7
7
  :number => Braintree::Test::CreditCardNumbers::Visa,
8
8
  :expiration_date => "05/2010"
9
- }
9
+ },
10
10
  ).credit_cards[0]
11
11
  end
12
12
 
@@ -16,21 +16,21 @@ describe Braintree::AdvancedSearch do
16
16
  subscription1 = Braintree::Subscription.create(
17
17
  :payment_method_token => @credit_card.token,
18
18
  :plan_id => SpecHelper::TriallessPlan[:id],
19
- :id => "subscription1_#{id}"
19
+ :id => "subscription1_#{id}",
20
20
  ).subscription
21
21
 
22
22
  subscription2 = Braintree::Subscription.create(
23
23
  :payment_method_token => @credit_card.token,
24
24
  :plan_id => SpecHelper::TriallessPlan[:id],
25
- :id => "subscription2_#{id}"
25
+ :id => "subscription2_#{id}",
26
26
  ).subscription
27
27
 
28
28
  collection = Braintree::Subscription.search do |search|
29
29
  search.id.is "subscription1_#{id}"
30
30
  end
31
31
 
32
- collection.should include(subscription1)
33
- collection.should_not include(subscription2)
32
+ expect(collection).to include(subscription1)
33
+ expect(collection).not_to include(subscription2)
34
34
  end
35
35
 
36
36
  it "is_not" do
@@ -39,14 +39,14 @@ describe Braintree::AdvancedSearch do
39
39
  :payment_method_token => @credit_card.token,
40
40
  :plan_id => SpecHelper::TriallessPlan[:id],
41
41
  :price => "11",
42
- :id => "subscription1_#{id}"
42
+ :id => "subscription1_#{id}",
43
43
  ).subscription
44
44
 
45
45
  subscription2 = Braintree::Subscription.create(
46
46
  :payment_method_token => @credit_card.token,
47
47
  :plan_id => SpecHelper::TriallessPlan[:id],
48
48
  :price => "11",
49
- :id => "subscription2_#{id}"
49
+ :id => "subscription2_#{id}",
50
50
  ).subscription
51
51
 
52
52
  collection = Braintree::Subscription.search do |search|
@@ -54,8 +54,8 @@ describe Braintree::AdvancedSearch do
54
54
  search.price.is "11"
55
55
  end
56
56
 
57
- collection.should_not include(subscription1)
58
- collection.should include(subscription2)
57
+ expect(collection).not_to include(subscription1)
58
+ expect(collection).to include(subscription2)
59
59
  end
60
60
 
61
61
  it "starts_with" do
@@ -63,21 +63,21 @@ describe Braintree::AdvancedSearch do
63
63
  subscription1 = Braintree::Subscription.create(
64
64
  :payment_method_token => @credit_card.token,
65
65
  :plan_id => SpecHelper::TriallessPlan[:id],
66
- :id => "subscription1_#{id}"
66
+ :id => "subscription1_#{id}",
67
67
  ).subscription
68
68
 
69
69
  subscription2 = Braintree::Subscription.create(
70
70
  :payment_method_token => @credit_card.token,
71
71
  :plan_id => SpecHelper::TriallessPlan[:id],
72
- :id => "subscription2_#{id}"
72
+ :id => "subscription2_#{id}",
73
73
  ).subscription
74
74
 
75
75
  collection = Braintree::Subscription.search do |search|
76
76
  search.id.starts_with "subscription1_"
77
77
  end
78
78
 
79
- collection.should include(subscription1)
80
- collection.should_not include(subscription2)
79
+ expect(collection).to include(subscription1)
80
+ expect(collection).not_to include(subscription2)
81
81
  end
82
82
 
83
83
  it "ends_with" do
@@ -85,21 +85,21 @@ describe Braintree::AdvancedSearch do
85
85
  subscription1 = Braintree::Subscription.create(
86
86
  :payment_method_token => @credit_card.token,
87
87
  :plan_id => SpecHelper::TriallessPlan[:id],
88
- :id => "subscription1_#{id}"
88
+ :id => "subscription1_#{id}",
89
89
  ).subscription
90
90
 
91
91
  subscription2 = Braintree::Subscription.create(
92
92
  :payment_method_token => @credit_card.token,
93
93
  :plan_id => SpecHelper::TriallessPlan[:id],
94
- :id => "subscription2_#{id}"
94
+ :id => "subscription2_#{id}",
95
95
  ).subscription
96
96
 
97
97
  collection = Braintree::Subscription.search do |search|
98
98
  search.id.ends_with "1_#{id}"
99
99
  end
100
100
 
101
- collection.should include(subscription1)
102
- collection.should_not include(subscription2)
101
+ expect(collection).to include(subscription1)
102
+ expect(collection).not_to include(subscription2)
103
103
  end
104
104
 
105
105
  it "contains" do
@@ -107,21 +107,21 @@ describe Braintree::AdvancedSearch do
107
107
  subscription1 = Braintree::Subscription.create(
108
108
  :payment_method_token => @credit_card.token,
109
109
  :plan_id => SpecHelper::TriallessPlan[:id],
110
- :id => "subscription1_#{id}"
110
+ :id => "subscription1_#{id}",
111
111
  ).subscription
112
112
 
113
113
  subscription2 = Braintree::Subscription.create(
114
114
  :payment_method_token => @credit_card.token,
115
115
  :plan_id => SpecHelper::TriallessPlan[:id],
116
- :id => "subscription2_#{id}"
116
+ :id => "subscription2_#{id}",
117
117
  ).subscription
118
118
 
119
119
  collection = Braintree::Subscription.search do |search|
120
120
  search.id.contains "scription1_"
121
121
  end
122
122
 
123
- collection.should include(subscription1)
124
- collection.should_not include(subscription2)
123
+ expect(collection).to include(subscription1)
124
+ expect(collection).not_to include(subscription2)
125
125
  end
126
126
  end
127
127
 
@@ -131,13 +131,13 @@ describe Braintree::AdvancedSearch do
131
131
  subscription1 = Braintree::Subscription.create(
132
132
  :payment_method_token => @credit_card.token,
133
133
  :plan_id => SpecHelper::TriallessPlan[:id],
134
- :price => "12"
134
+ :price => "12",
135
135
  ).subscription
136
136
 
137
137
  subscription2 = Braintree::Subscription.create(
138
138
  :payment_method_token => @credit_card.token,
139
139
  :plan_id => SpecHelper::TriallessPlan[:id],
140
- :price => "12"
140
+ :price => "12",
141
141
  ).subscription
142
142
 
143
143
  Braintree::Subscription.cancel(subscription2.id)
@@ -147,21 +147,21 @@ describe Braintree::AdvancedSearch do
147
147
  search.price.is "12"
148
148
  end
149
149
 
150
- collection.should include(subscription1)
151
- collection.should include(subscription2)
150
+ expect(collection).to include(subscription1)
151
+ expect(collection).to include(subscription2)
152
152
  end
153
153
 
154
154
  it "returns only matching results" do
155
155
  subscription1 = Braintree::Subscription.create(
156
156
  :payment_method_token => @credit_card.token,
157
157
  :plan_id => SpecHelper::TriallessPlan[:id],
158
- :price => "13"
158
+ :price => "13",
159
159
  ).subscription
160
160
 
161
161
  subscription2 = Braintree::Subscription.create(
162
162
  :payment_method_token => @credit_card.token,
163
163
  :plan_id => SpecHelper::TriallessPlan[:id],
164
- :price => "13"
164
+ :price => "13",
165
165
  ).subscription
166
166
 
167
167
  Braintree::Subscription.cancel(subscription2.id)
@@ -171,21 +171,21 @@ describe Braintree::AdvancedSearch do
171
171
  search.price.is "13"
172
172
  end
173
173
 
174
- collection.should include(subscription1)
175
- collection.should_not include(subscription2)
174
+ expect(collection).to include(subscription1)
175
+ expect(collection).not_to include(subscription2)
176
176
  end
177
177
 
178
178
  it "returns only matching results given an argument list" do
179
179
  subscription1 = Braintree::Subscription.create(
180
180
  :payment_method_token => @credit_card.token,
181
181
  :plan_id => SpecHelper::TriallessPlan[:id],
182
- :price => "14"
182
+ :price => "14",
183
183
  ).subscription
184
184
 
185
185
  subscription2 = Braintree::Subscription.create(
186
186
  :payment_method_token => @credit_card.token,
187
187
  :plan_id => SpecHelper::TriallessPlan[:id],
188
- :price => "14"
188
+ :price => "14",
189
189
  ).subscription
190
190
 
191
191
  Braintree::Subscription.cancel(subscription2.id)
@@ -195,8 +195,8 @@ describe Braintree::AdvancedSearch do
195
195
  search.price.is "14"
196
196
  end
197
197
 
198
- collection.should include(subscription1)
199
- collection.should include(subscription2)
198
+ expect(collection).to include(subscription1)
199
+ expect(collection).to include(subscription2)
200
200
  end
201
201
 
202
202
  describe "is" do
@@ -204,13 +204,13 @@ describe Braintree::AdvancedSearch do
204
204
  subscription1 = Braintree::Subscription.create(
205
205
  :payment_method_token => @credit_card.token,
206
206
  :plan_id => SpecHelper::TriallessPlan[:id],
207
- :price => "15"
207
+ :price => "15",
208
208
  ).subscription
209
209
 
210
210
  subscription2 = Braintree::Subscription.create(
211
211
  :payment_method_token => @credit_card.token,
212
212
  :plan_id => SpecHelper::TriallessPlan[:id],
213
- :price => "15"
213
+ :price => "15",
214
214
  ).subscription
215
215
 
216
216
  Braintree::Subscription.cancel(subscription2.id)
@@ -220,8 +220,8 @@ describe Braintree::AdvancedSearch do
220
220
  search.price.is "15"
221
221
  end
222
222
 
223
- collection.should include(subscription1)
224
- collection.should_not include(subscription2)
223
+ expect(collection).to include(subscription1)
224
+ expect(collection).not_to include(subscription2)
225
225
  end
226
226
  end
227
227
 
@@ -229,13 +229,13 @@ describe Braintree::AdvancedSearch do
229
229
  subscription1 = Braintree::Subscription.create(
230
230
  :payment_method_token => @credit_card.token,
231
231
  :plan_id => SpecHelper::TriallessPlan[:id],
232
- :price => "16"
232
+ :price => "16",
233
233
  ).subscription
234
234
 
235
235
  subscription2 = Braintree::Subscription.create(
236
236
  :payment_method_token => @credit_card.token,
237
237
  :plan_id => SpecHelper::TriallessPlan[:id],
238
- :price => "16"
238
+ :price => "16",
239
239
  ).subscription
240
240
 
241
241
  Braintree::Subscription.cancel(subscription2.id)
@@ -245,8 +245,8 @@ describe Braintree::AdvancedSearch do
245
245
  search.price.is "16"
246
246
  end
247
247
 
248
- collection.should include(subscription1)
249
- collection.should include(subscription2)
248
+ expect(collection).to include(subscription1)
249
+ expect(collection).to include(subscription2)
250
250
  end
251
251
 
252
252
  it "returns expired subscriptions" do
@@ -254,8 +254,8 @@ describe Braintree::AdvancedSearch do
254
254
  search.status.in [Braintree::Subscription::Status::Expired]
255
255
  end
256
256
 
257
- collection.maximum_size.should > 0
258
- collection.all? { |subscription| subscription.status.should == Braintree::Subscription::Status::Expired }
257
+ expect(collection.maximum_size).to be > 0
258
+ collection.all? { |subscription| expect(subscription.status).to eq(Braintree::Subscription::Status::Expired) }
259
259
  end
260
260
  end
261
261
  end
@@ -263,22 +263,22 @@ describe Braintree::AdvancedSearch do
263
263
  context "multiple_value_or_text_field" do
264
264
  describe "in" do
265
265
  it "works for the in operator" do
266
- subscription1 = Braintree::Subscription.create(
266
+ Braintree::Subscription.create(
267
267
  :payment_method_token => @credit_card.token,
268
268
  :plan_id => SpecHelper::TriallessPlan[:id],
269
- :price => "17"
269
+ :price => "17",
270
270
  ).subscription
271
271
 
272
- subscription2 = Braintree::Subscription.create(
272
+ Braintree::Subscription.create(
273
273
  :payment_method_token => @credit_card.token,
274
274
  :plan_id => SpecHelper::TrialPlan[:id],
275
- :price => "17"
275
+ :price => "17",
276
276
  ).subscription
277
277
 
278
- subscription3 = Braintree::Subscription.create(
278
+ Braintree::Subscription.create(
279
279
  :payment_method_token => @credit_card.token,
280
280
  :plan_id => SpecHelper::AddOnDiscountPlan[:id],
281
- :price => "17"
281
+ :price => "17",
282
282
  ).subscription
283
283
 
284
284
  plan_ids = [SpecHelper::TriallessPlan[:id], SpecHelper::TrialPlan[:id]]
@@ -287,7 +287,7 @@ describe Braintree::AdvancedSearch do
287
287
  search.price.is "17"
288
288
  end
289
289
 
290
- collection.maximum_size.should > 0
290
+ expect(collection.maximum_size).to be > 0
291
291
  collection.all? { |subscription| plan_ids.include?(subscription.plan_id) }
292
292
  end
293
293
  end
@@ -298,7 +298,7 @@ describe Braintree::AdvancedSearch do
298
298
  search.plan_id.is "not_a_real_plan_id"
299
299
  end
300
300
 
301
- collection.maximum_size.should == 0
301
+ expect(collection.maximum_size).to eq(0)
302
302
  end
303
303
  end
304
304
 
@@ -307,13 +307,13 @@ describe Braintree::AdvancedSearch do
307
307
  trialless_subscription = Braintree::Subscription.create(
308
308
  :payment_method_token => @credit_card.token,
309
309
  :plan_id => SpecHelper::TriallessPlan[:id],
310
- :price => "18"
310
+ :price => "18",
311
311
  ).subscription
312
312
 
313
313
  trial_subscription = Braintree::Subscription.create(
314
314
  :payment_method_token => @credit_card.token,
315
315
  :plan_id => SpecHelper::TrialPlan[:id],
316
- :price => "18"
316
+ :price => "18",
317
317
  ).subscription
318
318
 
319
319
  collection = Braintree::Subscription.search do |search|
@@ -321,8 +321,8 @@ describe Braintree::AdvancedSearch do
321
321
  search.price.is "18"
322
322
  end
323
323
 
324
- collection.should include(trialless_subscription)
325
- collection.should_not include(trial_subscription)
324
+ expect(collection).to include(trialless_subscription)
325
+ expect(collection).not_to include(trial_subscription)
326
326
  end
327
327
  end
328
328
 
@@ -331,13 +331,13 @@ describe Braintree::AdvancedSearch do
331
331
  trialless_subscription = Braintree::Subscription.create(
332
332
  :payment_method_token => @credit_card.token,
333
333
  :plan_id => SpecHelper::TriallessPlan[:id],
334
- :price => "19"
334
+ :price => "19",
335
335
  ).subscription
336
336
 
337
337
  trial_subscription = Braintree::Subscription.create(
338
338
  :payment_method_token => @credit_card.token,
339
339
  :plan_id => SpecHelper::TrialPlan[:id],
340
- :price => "19"
340
+ :price => "19",
341
341
  ).subscription
342
342
 
343
343
  collection = Braintree::Subscription.search do |search|
@@ -345,8 +345,8 @@ describe Braintree::AdvancedSearch do
345
345
  search.price.is "19"
346
346
  end
347
347
 
348
- collection.should_not include(trialless_subscription)
349
- collection.should include(trial_subscription)
348
+ expect(collection).not_to include(trialless_subscription)
349
+ expect(collection).to include(trial_subscription)
350
350
  end
351
351
  end
352
352
 
@@ -355,13 +355,13 @@ describe Braintree::AdvancedSearch do
355
355
  trialless_subscription = Braintree::Subscription.create(
356
356
  :payment_method_token => @credit_card.token,
357
357
  :plan_id => SpecHelper::TriallessPlan[:id],
358
- :price => "20"
358
+ :price => "20",
359
359
  ).subscription
360
360
 
361
361
  trial_subscription = Braintree::Subscription.create(
362
362
  :payment_method_token => @credit_card.token,
363
363
  :plan_id => SpecHelper::TrialPlan[:id],
364
- :price => "20"
364
+ :price => "20",
365
365
  ).subscription
366
366
 
367
367
  collection = Braintree::Subscription.search do |search|
@@ -369,8 +369,8 @@ describe Braintree::AdvancedSearch do
369
369
  search.price.is "20"
370
370
  end
371
371
 
372
- collection.should include(trial_subscription)
373
- collection.should_not include(trialless_subscription)
372
+ expect(collection).to include(trial_subscription)
373
+ expect(collection).not_to include(trialless_subscription)
374
374
  end
375
375
  end
376
376
 
@@ -379,13 +379,13 @@ describe Braintree::AdvancedSearch do
379
379
  trialless_subscription = Braintree::Subscription.create(
380
380
  :payment_method_token => @credit_card.token,
381
381
  :plan_id => SpecHelper::TriallessPlan[:id],
382
- :price => "21"
382
+ :price => "21",
383
383
  ).subscription
384
384
 
385
385
  trial_subscription = Braintree::Subscription.create(
386
386
  :payment_method_token => @credit_card.token,
387
387
  :plan_id => SpecHelper::TrialPlan[:id],
388
- :price => "21"
388
+ :price => "21",
389
389
  ).subscription
390
390
 
391
391
  collection = Braintree::Subscription.search do |search|
@@ -393,8 +393,8 @@ describe Braintree::AdvancedSearch do
393
393
  search.price.is "21"
394
394
  end
395
395
 
396
- collection.should include(trial_subscription)
397
- collection.should_not include(trialless_subscription)
396
+ expect(collection).to include(trial_subscription)
397
+ expect(collection).not_to include(trialless_subscription)
398
398
  end
399
399
  end
400
400
 
@@ -403,13 +403,13 @@ describe Braintree::AdvancedSearch do
403
403
  trialless_subscription = Braintree::Subscription.create(
404
404
  :payment_method_token => @credit_card.token,
405
405
  :plan_id => SpecHelper::TriallessPlan[:id],
406
- :price => "22"
406
+ :price => "22",
407
407
  ).subscription
408
408
 
409
409
  trial_subscription = Braintree::Subscription.create(
410
410
  :payment_method_token => @credit_card.token,
411
411
  :plan_id => SpecHelper::TrialPlan[:id],
412
- :price => "22"
412
+ :price => "22",
413
413
  ).subscription
414
414
 
415
415
  collection = Braintree::Subscription.search do |search|
@@ -417,8 +417,8 @@ describe Braintree::AdvancedSearch do
417
417
  search.price.is "22"
418
418
  end
419
419
 
420
- collection.should include(trial_subscription)
421
- collection.should_not include(trialless_subscription)
420
+ expect(collection).to include(trial_subscription)
421
+ expect(collection).not_to include(trialless_subscription)
422
422
  end
423
423
  end
424
424
  end
@@ -428,105 +428,105 @@ describe Braintree::AdvancedSearch do
428
428
  subscription_500 = Braintree::Subscription.create(
429
429
  :payment_method_token => @credit_card.token,
430
430
  :plan_id => SpecHelper::TriallessPlan[:id],
431
- :price => "5.00"
431
+ :price => "5.00",
432
432
  ).subscription
433
433
 
434
434
  subscription_501 = Braintree::Subscription.create(
435
435
  :payment_method_token => @credit_card.token,
436
436
  :plan_id => SpecHelper::TrialPlan[:id],
437
- :price => "5.01"
437
+ :price => "5.01",
438
438
  ).subscription
439
439
 
440
440
  collection = Braintree::Subscription.search do |search|
441
441
  search.price.is "5.00"
442
442
  end
443
443
 
444
- collection.should include(subscription_500)
445
- collection.should_not include(subscription_501)
444
+ expect(collection).to include(subscription_500)
445
+ expect(collection).not_to include(subscription_501)
446
446
  end
447
447
 
448
448
  it "<=" do
449
449
  subscription_499 = Braintree::Subscription.create(
450
450
  :payment_method_token => @credit_card.token,
451
451
  :plan_id => SpecHelper::TrialPlan[:id],
452
- :price => "4.99"
452
+ :price => "4.99",
453
453
  ).subscription
454
454
 
455
455
  subscription_500 = Braintree::Subscription.create(
456
456
  :payment_method_token => @credit_card.token,
457
457
  :plan_id => SpecHelper::TriallessPlan[:id],
458
- :price => "5.00"
458
+ :price => "5.00",
459
459
  ).subscription
460
460
 
461
461
  subscription_501 = Braintree::Subscription.create(
462
462
  :payment_method_token => @credit_card.token,
463
463
  :plan_id => SpecHelper::TrialPlan[:id],
464
- :price => "5.01"
464
+ :price => "5.01",
465
465
  ).subscription
466
466
 
467
467
  collection = Braintree::Subscription.search do |search|
468
468
  search.price <= "5.00"
469
469
  end
470
470
 
471
- collection.should include(subscription_499)
472
- collection.should include(subscription_500)
473
- collection.should_not include(subscription_501)
471
+ expect(collection).to include(subscription_499)
472
+ expect(collection).to include(subscription_500)
473
+ expect(collection).not_to include(subscription_501)
474
474
  end
475
475
 
476
476
  it ">=" do
477
477
  subscription_499 = Braintree::Subscription.create(
478
478
  :payment_method_token => @credit_card.token,
479
479
  :plan_id => SpecHelper::TrialPlan[:id],
480
- :price => "999.99"
480
+ :price => "999.99",
481
481
  ).subscription
482
482
 
483
483
  subscription_500 = Braintree::Subscription.create(
484
484
  :payment_method_token => @credit_card.token,
485
485
  :plan_id => SpecHelper::TriallessPlan[:id],
486
- :price => "1000.00"
486
+ :price => "1000.00",
487
487
  ).subscription
488
488
 
489
489
  subscription_501 = Braintree::Subscription.create(
490
490
  :payment_method_token => @credit_card.token,
491
491
  :plan_id => SpecHelper::TrialPlan[:id],
492
- :price => "1000.01"
492
+ :price => "1000.01",
493
493
  ).subscription
494
494
 
495
495
  collection = Braintree::Subscription.search do |search|
496
496
  search.price >= "1000.00"
497
497
  end
498
498
 
499
- collection.should_not include(subscription_499)
500
- collection.should include(subscription_500)
501
- collection.should include(subscription_501)
499
+ expect(collection).not_to include(subscription_499)
500
+ expect(collection).to include(subscription_500)
501
+ expect(collection).to include(subscription_501)
502
502
  end
503
503
 
504
504
  it "between" do
505
505
  subscription_499 = Braintree::Subscription.create(
506
506
  :payment_method_token => @credit_card.token,
507
507
  :plan_id => SpecHelper::TrialPlan[:id],
508
- :price => "4.99"
508
+ :price => "4.99",
509
509
  ).subscription
510
510
 
511
511
  subscription_500 = Braintree::Subscription.create(
512
512
  :payment_method_token => @credit_card.token,
513
513
  :plan_id => SpecHelper::TriallessPlan[:id],
514
- :price => "5.00"
514
+ :price => "5.00",
515
515
  ).subscription
516
516
 
517
517
  subscription_502 = Braintree::Subscription.create(
518
518
  :payment_method_token => @credit_card.token,
519
519
  :plan_id => SpecHelper::TrialPlan[:id],
520
- :price => "5.02"
520
+ :price => "5.02",
521
521
  ).subscription
522
522
 
523
523
  collection = Braintree::Subscription.search do |search|
524
524
  search.price.between "4.99", "5.01"
525
525
  end
526
526
 
527
- collection.should include(subscription_499)
528
- collection.should include(subscription_500)
529
- collection.should_not include(subscription_502)
527
+ expect(collection).to include(subscription_499)
528
+ expect(collection).to include(subscription_500)
529
+ expect(collection).not_to include(subscription_502)
530
530
  end
531
531
  end
532
532
  end
@@ -5,31 +5,31 @@ describe Braintree::ApplePayGateway do
5
5
  gateway = Braintree::Gateway.new(
6
6
  :client_id => "client_id$#{Braintree::Configuration.environment}$integration_client_id",
7
7
  :client_secret => "client_secret$#{Braintree::Configuration.environment}$integration_client_secret",
8
- :logger => Logger.new("/dev/null")
8
+ :logger => Logger.new("/dev/null"),
9
9
  )
10
10
 
11
11
  result = gateway.merchant.create(
12
12
  :email => "name@email.com",
13
- :country_code_alpha3 => "USA",
14
- :payment_methods => ["credit_card", "paypal"]
13
+ :country_code_alpha3 => "GBR",
14
+ :payment_methods => ["credit_card", "paypal"],
15
15
  )
16
16
 
17
17
  @gateway = Braintree::Gateway.new(
18
18
  :access_token => result.credentials.access_token,
19
- :logger => Logger.new("/dev/null")
19
+ :logger => Logger.new("/dev/null"),
20
20
  )
21
21
  end
22
22
 
23
23
  describe "register_domain" do
24
24
  it "registers an apple pay domain" do
25
25
  result = @gateway.apple_pay.register_domain("www.example.com")
26
- result.should be_success
26
+ expect(result).to be_success
27
27
  end
28
28
 
29
29
  it "gets a validation error when attempting to register no domains" do
30
30
  result = @gateway.apple_pay.register_domain("")
31
- result.should_not be_success
32
- result.errors.for(:apple_pay)[0].message.should eq("Domain name is required.")
31
+ expect(result).not_to be_success
32
+ expect(result.errors.for(:apple_pay)[0].message).to eq("Domain name is required.")
33
33
  end
34
34
  end
35
35
 
@@ -37,27 +37,27 @@ describe Braintree::ApplePayGateway do
37
37
  it "unregisters an apple pay domain" do
38
38
  domain = "example.org"
39
39
  result = @gateway.apple_pay.unregister_domain(domain)
40
- result.should be_success
40
+ expect(result).to be_success
41
41
  end
42
42
 
43
43
  it "unregisters an apple pay domain with scheme in url" do
44
44
  domain = "http://example.org"
45
45
  result = @gateway.apple_pay.unregister_domain(domain)
46
- result.should be_success
46
+ expect(result).to be_success
47
47
  end
48
48
 
49
49
  it "escapes the unregistered domain query parameter" do
50
50
  domain = "ex&mple.org"
51
51
  result = @gateway.apple_pay.unregister_domain(domain)
52
- result.should be_success
52
+ expect(result).to be_success
53
53
  end
54
54
  end
55
55
 
56
56
  describe "registered_domains" do
57
57
  it "returns stubbed registered domains" do
58
58
  result = @gateway.apple_pay.registered_domains
59
- result.should be_success
60
- result.apple_pay_options.domains.should == ["www.example.com"]
59
+ expect(result).to be_success
60
+ expect(result.apple_pay_options.domains).to eq(["www.example.com"])
61
61
  end
62
62
  end
63
63
  end
@@ -12,7 +12,8 @@ describe Braintree::Gateway do
12
12
  end
13
13
 
14
14
  describe "query" do
15
- it "makes valid GraphQL queries when given a definition" do
15
+ # we are temporarily skipping this test until we have a more stable CI env
16
+ xit "makes valid GraphQL queries when given a definition" do
16
17
  definition = <<-GRAPHQL
17
18
  mutation ExampleServerSideSingleUseToken($input: TokenizeCreditCardInput!) {
18
19
  tokenizeCreditCard(input: $input) {