Maikel Linke
|
dcb6f4676d
|
Remove all unnecessary spec_helper require statements
The `.rspec` file is doing this for us.
|
2026-01-21 12:35:34 +11:00 |
|
Gaetan Craig-Riou
|
29a24b7305
|
Scope variant to hub only when inventory enabled
|
2025-07-09 11:35:26 +10:00 |
|
Gaetan Craig-Riou
|
7c31c951a1
|
Refactor spec to use instance_double
|
2025-07-09 11:35:26 +10:00 |
|
cyrillefr
|
a7eb95afc5
|
Fixes RSpecRailsInferredSpecType in base controllers
|
2025-05-20 12:45:34 +02:00 |
|
cyrillefr
|
5063a772f0
|
Fixes RSpec Rails HaveHttpStatus cop in controllers
|
2025-05-14 10:58:04 +02:00 |
|
Hartani Yassir
|
bd41426aef
|
fix rubocop Rails/ResponseParseBody
|
2025-01-31 10:47:03 +01:00 |
|
Maikel Linke
|
6317fe1b71
|
Disable RSpec monkey patching
|
2024-05-09 12:24:41 +10:00 |
|
David Cook
|
2107aeded1
|
Un-safely autocorrect RSpec/ExpectChange
|
2024-02-23 12:17:09 +11:00 |
|
Neal Chambers
|
42a6a02353
|
Fix Style/HashSyntax
|
2023-09-19 08:25:56 +09:00 |
|
Neal Chambers
|
5b6f45931c
|
Fix Layout/LineLength
|
2023-06-26 13:06:56 +09:00 |
|
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
|
398d4b2612
|
Tidy up public interface of CartService
We don't need this extra hash to be passed around
|
2021-06-04 17:10:50 +01:00 |
|
Matt-Yorkley
|
6e8fd3c3f8
|
Simplify CartService interface
There's only one place this method is called, and the "overwrite" argument is always explicitly true. It doesn't need to be there if it's mandatory.
|
2021-06-04 17:10:50 +01:00 |
|
Matt-Yorkley
|
d99e598e7a
|
Delete dead code in CartController
The two conditionals in #populate_variant_attributes here are never actually true, so the subsequent code paths are never reached.
|
2021-06-04 17:10:50 +01:00 |
|
Matt-Yorkley
|
d5d76d9b9a
|
Move private controller methods to private
|
2021-06-04 17:10:50 +01:00 |
|
Luis Ramos
|
7c8c720976
|
Fix rspec syntax to work with rails 5.2
|
2021-03-23 21:41:03 +00:00 |
|
Luis Ramos
|
e2ce6634df
|
Adapt specs to new rspec syntax without xhr
|
2021-03-22 20:43:48 +00:00 |
|
Luis Ramos
|
f710bbed3e
|
Convert calls to xhr to post or put with xhr: true
|
2021-03-16 23:31:43 +00:00 |
|
Matt-Yorkley
|
0393ea4219
|
Update variant params in CartController
|
2021-03-11 12:19:55 +00:00 |
|
Andy Brett
|
7a03882314
|
re-refactor cart_service
|
2020-12-08 14:37:16 -08:00 |
|
Andy Brett
|
b713bd7aa7
|
spec updates
|
2020-12-08 14:37:16 -08:00 |
|
Luis Ramos
|
2b8f0abe49
|
Try some mass auto-correct adding frozen-string-literal to all specs
|
2020-12-03 06:38:24 -08:00 |
|
luisramos0
|
c1d14686a6
|
Merge branch 'master' into 2-0-stable-Mar22
|
2019-03-22 10:55:17 +00:00 |
|
luisramos0
|
2de6c46834
|
Make order.order_cycle required in cart_service. There’s no more exception for that without product_distributions.
|
2019-03-13 12:24:40 +00:00 |
|
luisramos0
|
f0842fcbe5
|
Convert all calls to variant.count_on_hand to variant.on_hand
|
2019-02-18 21:54:07 +00:00 |
|
luisramos0
|
6da94fc960
|
Adapt cart_controller_spec to new variant_stock where variant count_on_hand can only be set after saving the variant
|
2019-01-18 12:45:29 +00:00 |
|
luisramos0
|
d926f7c776
|
Reorganize and improve cart controller spec
|
2019-01-15 13:42:51 +00:00 |
|
luisramos0
|
aa603c9a84
|
Make rubocop happy on cart controller, cart service and stock levels service
|
2019-01-15 13:42:51 +00:00 |
|
luisramos0
|
b0449be302
|
Add spec to test cart controller handling of variant overrides on cart populate
|
2019-01-15 13:38:58 +00:00 |
|
luisramos0
|
c0473a4505
|
Extract variants_stock_levels from cart_controller and refactor some names
|
2019-01-15 13:38:58 +00:00 |
|
luisramos0
|
ec069b1e3e
|
Converted specs to latest rspec syntax
|
2018-08-23 12:39:58 +01:00 |
|
luisramos0
|
05bfc098ff
|
/controllers/spree/order_populator_decorator (with a class_eval) is now /services/CartService with no dependency to Spree::OrderPopulator.
|
2018-08-23 12:39:55 +01:00 |
|
luisramos0
|
6caa361354
|
Moved Spree::OrderController.populate to new CartController.
This was done to make order populate independent of Spree::OrdersController
|
2018-08-23 12:37:52 +01:00 |
|
luisramos0
|
0b9061df28
|
removed Cart route, controller, model and specs: dead code
|
2018-08-11 22:17:12 +01:00 |
|
Maikel Linke
|
b7de80dd7f
|
Remove unused count_on_hand setting from spec
This spec doesn't need to set the product's `count_on_hand`. The product
comes with a count of 3, but what matters is the count of variants.
|
2018-06-27 11:41:55 +10:00 |
|
Daniel Dominguez
|
9d9a974295
|
Switched gem FactoryGirl to FactoryBot as FactoryGirl is deprecated.
- Change FactoryGirl to FactoryBot everywhere on code.
|
2018-05-04 11:52:08 -03:00 |
|
Rob Harrington
|
82072c8970
|
Explicitly specifying 'type: :controller' for all controller specs
|
2017-11-10 08:47:12 +11:00 |
|
Rob Harrington
|
b9f19d5777
|
Fixing broken specs
|
2015-04-17 13:00:20 +10:00 |
|
Rob H
|
43a4a3dd5a
|
Alter on_hand counts for products to fix broken specs
|
2014-03-06 13:14:06 +11:00 |
|
Rohan Mitchell
|
57f7d489ff
|
Rename OpenFoodWeb namespace to OpenFoodNetwork
|
2013-10-18 17:29:55 +11:00 |
|
Rohan Mitchell
|
8353413c4a
|
Fix spec fail
|
2013-09-30 15:13:02 +10:00 |
|
Andrew Spinks
|
fdaa5364a1
|
Add controller action for adding products to multi cart via javascript API.
|
2013-08-15 15:36:35 +10:00 |
|
Andrew Spinks
|
59fce8a964
|
Show line items for each order in multi-cart.
|
2013-08-14 10:49:55 +10:00 |
|
Andrew Spinks
|
bc57364c7e
|
Add simple angular cart to the main page.
|
2013-08-08 18:31:56 +10:00 |
|
Andrew Spinks
|
ac37dff946
|
Add controller for cart and beginnings of an API.
|
2013-08-08 18:31:56 +10:00 |
|