Maikel Linke
|
6317fe1b71
|
Disable RSpec monkey patching
|
2024-05-09 12:24:41 +10:00 |
|
Neal Chambers
|
c3b4781a28
|
Safely autocorrect Style/RedundantConstantBase
Inspecting 1509 files
.........................................................................................................C.........................................C......................................................................................................................................................................................................................................................................................................................................................................................................................................................................C.......................................................................................................................................................................................................................................................................................................................................................................................................................C.........................................................................................................................................................................CCC........................................C......................................................................................C......................................................................................................................................................................................................
Offenses:
app/controllers/split_checkout_controller.rb:5:33: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
class SplitCheckoutController < ::BaseController
^^
app/controllers/webhook_endpoints_controller.rb:3:36: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
class WebhookEndpointsController < ::BaseController
^^
config.ru:5:9: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
require ::File.expand_path('config/environment', __dir__)
^^
spec/helpers/checkout_helper_spec.rb:168:68: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
let!(:tax_rate) { create(:tax_rate, amount: 0.1, calculator: ::Calculator::DefaultTax.new) }
^^
spec/models/spree/order_spec.rb:619:25: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
let(:fee_handler) { ::OrderFeesHandler.new(subject) }
^^
spec/models/spree/payment_method_spec.rb:150:51: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
calculator: ::Calculator::FlatRate.new(preferred_amount: 10))
^^
spec/models/spree/payment_method_spec.rb:154:54: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
calculator: ::Calculator::FlatPercentItemTotal
^^
spec/models/spree/payment_spec.rb:429:49: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
create(:payment_method, calculator: ::Calculator::FlatRate.new(preferred_amount: 10))
^^
spec/models/spree/payment_spec.rb:1002:11: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
::Calculator::FlatPercentItemTotal.new(preferred_flat_percent: 10)
^^
spec/models/spree/payment_spec.rb:1039:28: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
let(:calculator) { ::Calculator::FlatPercentItemTotal.new(preferred_flat_percent: 10) }
^^
spec/queries/complete_visible_orders_spec.rb:12:31: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
let(:order_permissions) { ::Permissions::Order.new(user, filter_canceled) }
^^
spec/services/paypal_items_builder_spec.rb:34:37: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
calculator: ::Calculator::DefaultTax.new)
^^
spec/services/paypal_items_builder_spec.rb:38:37: C: [Corrected] Style/RedundantConstantBase: Remove redundant ::.
calculator: ::Calculator::DefaultTax.new)
^^
1509 files inspected, 13 offenses detected, 13 offenses corrected
|
2023-11-10 09:13:57 +09:00 |
|
Neal Chambers
|
0663f04535
|
Remove Simple References to Bogus Gateway
|
2023-11-07 11:19:26 +09:00 |
|
Neal Chambers
|
fe88a88206
|
Fix Style/HashSyntax
|
2023-09-22 09:08:50 +09:00 |
|
Maikel Linke
|
1b6eeb0928
|
Reduce line length of PaymentMethod class
Rubocop was complaining. So I found code that could be simplified and
specced it before refactoring.
|
2023-08-11 10:14:47 +10:00 |
|
Neal Chambers
|
5b6f45931c
|
Fix Layout/LineLength
|
2023-06-26 13:06:56 +09:00 |
|
cyrillefr
|
b3ad5aeaca
|
Remove I18n keys in model specs
|
2023-02-16 14:28:14 +01:00 |
|
Cillian O'Ruanaidh
|
62cd507fb9
|
Stub Spree::Config.stripe_connect_enabled instead of changing it before and back after tests
It's less code and sometimes there can be issues when config cache values are changed.
Co-authored-by: Maikel <maikel@email.org.au>
|
2022-10-21 17:21:31 +01:00 |
|
Cillian O'Ruanaidh
|
4e6d64c0a1
|
Let people choose which payment methods are available to customers on order cycles
|
2022-10-21 17:21:31 +01:00 |
|
Nihal Mohammed
|
3820d4c591
|
Removed checkout only from DISPLAY options on payment method edit form and updated payment_method_spec
|
2022-03-07 17:33:09 +05:30 |
|
Maikel Linke
|
ee85b9654d
|
Remove references to StripeConnect class
|
2022-01-24 12:35:45 +11:00 |
|
Maikel
|
a3c31f7d86
|
Revert "Kill stripe connect"
|
2021-09-20 08:39:34 +10:00 |
|
Nihal Mohammed
|
48c1312cea
|
Remove expectation to generate clean name for StripeConnect from payment_method_spec
|
2021-09-10 14:43:34 +05:30 |
|
Luis Ramos
|
23627c5453
|
Run rubocop -a (safe corrections) removing all exceptions so all possible fixes are applied
9290 issues fixed
|
2021-06-17 22:19:26 +01:00 |
|
Matt-Yorkley
|
42ff2307fa
|
Update specs that use removed #add_variant and #remove_variant methods in test setup
|
2021-06-04 17:10:50 +01:00 |
|
Luis Ramos
|
c0ddeceb1e
|
Remove Pin Payments
|
2021-02-06 11:15:48 +00:00 |
|
Luis Ramos
|
e69eefdc0f
|
Remove Migs payment gateway
|
2021-02-03 21:41:40 +00:00 |
|
Paulo Vilarinho
|
50955d735c
|
Add tests for internationalization of payment method clean name
The clean name payment method tests now uses the internationalization string
|
2020-12-17 00:34:21 -03:00 |
|
Luis Ramos
|
2b8f0abe49
|
Try some mass auto-correct adding frozen-string-literal to all specs
|
2020-12-03 06:38:24 -08:00 |
|
Luis Ramos
|
ec8dfd668d
|
Use ofn's calculator in all tests and add missing translation
|
2020-09-17 13:59:41 +01:00 |
|
Luis Ramos
|
798194c03e
|
Fix payment_method spec
|
2020-08-07 14:02:05 +01:00 |
|
Luis Ramos
|
621e2a3132
|
Run rubocop autocorrect
|
2020-08-07 13:16:38 +01:00 |
|
Luis Ramos
|
abaa66cc14
|
Bring models from spree_core
|
2020-08-07 13:06:16 +01:00 |
|
luisramos0
|
86b0d71c7e
|
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
|
2019-05-28 12:57:29 +01:00 |
|
luisramos0
|
04801e5c2e
|
Run transpec in spec/models
|
2019-05-09 22:25:29 +01:00 |
|
luisramos0
|
c652cfe4d5
|
Merge branch 'master' into 2-0-stable-Feb12
|
2019-02-12 16:03:33 +00:00 |
|
Kristina Lim
|
5fce9d0a7d
|
Add multi-distributor scope to shipping and payment methods
|
2019-02-08 21:26:37 +00:00 |
|
luisramos0
|
1d60732581
|
Improve readability of payment_method_spec
|
2019-01-17 20:18:43 +00:00 |
|
Rob Harrington
|
d500c20d3f
|
Adding new StripeConnect payment gateway
|
2017-09-23 14:57:02 +10:00 |
|
Maikel Linke
|
a624a57bfb
|
Pass current order to PaymentMethodSerializer
|
2016-05-25 17:12:47 +10:00 |
|
Maikel Linke
|
16b80a2f1b
|
Extend PaymentMethod with calculated_adjustments
|
2016-05-25 14:56:52 +10:00 |
|
Rohan Mitchell
|
e607c9855f
|
Add Pin Payments gateway
|
2014-12-12 10:59:23 +11:00 |
|
Rob H
|
044a4c6816
|
Finish changing class names for PayPal gateways
|
2014-08-08 23:19:13 +10:00 |
|
Rob H
|
51f912033b
|
Remove test for PayPalExpress UK which does not exist anymore
|
2014-08-08 22:39:26 +10:00 |
|
Rob H
|
16215289d0
|
Spec for payment method clean_name translation
|
2014-08-08 17:47:50 +10:00 |
|
Rob H
|
f021d260b1
|
Require payment_methods to be associated with at least one hub
|
2014-08-08 17:47:50 +10:00 |
|
Rohan Mitchell
|
dfcf567f26
|
Sort payment methods by name
|
2013-11-21 14:42:28 +11:00 |
|
Rohan Mitchell
|
bd112c64b0
|
Fix edit enterprise link to point to edit page, fix spec breakages
|
2013-10-18 15:39:58 +11:00 |
|
Rohan Mitchell
|
e6041aaf2f
|
Enterprise user can view, create and edit payment methods
|
2013-10-18 09:09:53 +11:00 |
|