Matt-Yorkley
ff962c1c9b
Change various Mailer invocations from #deliver_now to #deliver_later
2021-01-08 23:18:55 +00:00
Matt-Yorkley
3e6445c51c
Replace deprecated ActionMailer#deliver with ActionMailer#deliver_now
...
DEPRECATION WARNING: `#deliver` is deprecated and will be removed in Rails 5. Use `#deliver_now` to deliver immediately or `#deliver_later` to deliver through Active Job.
2021-01-08 20:35:47 +00:00
Luis Ramos
2b8f0abe49
Try some mass auto-correct adding frozen-string-literal to all specs
2020-12-03 06:38:24 -08:00
Matt-Yorkley
d299c8cf01
Update test setup in Packer spec.
...
This is the correct way to set a variant's weight.
2020-11-27 14:00:29 +00:00
Matt-Yorkley
98f42a1f81
Fix output of Package#inspect
2020-11-27 14:00:29 +00:00
Matt-Yorkley
f589d278cf
Add failing spec for Package#inspect
2020-11-27 14:00:29 +00:00
Matt-Yorkley
2905267142
Fix broken variant weight assignment in spec
...
OrderManagement::Stock::Packer builds a package with all the items
Failure/Error: expect(package.weight).to be_positive
expected `0.0 (#<BigDecimal:7f156c99fda8,'0.0',9(18)>).positive?` to be truthy, got false
# ./engines/order_management/spec/services/order_management/stock/packer_spec.rb:19:in `block (2 levels) in <module:Stock>'
2020-11-27 14:00:29 +00:00
Matt-Yorkley
71c6cee94c
Fix "modifying frozen string" error in Package#inspect
2020-11-27 14:00:29 +00:00
Matt-Yorkley
3bfa903912
Revert "Move Spree::Admin::BaseController to Admin::BaseController"
2020-11-27 14:11:57 +01:00
Andy Brett
85d99f3bf2
Merge branch 'master' into controllers
2020-11-20 08:12:03 -08:00
Luis Ramos
c785d0d1d7
Make engine's routes append to main app instead of prepend
2020-11-04 12:15:45 +00:00
Andy Brett
04f5249176
update template path for cookies banner, fix #6284
2020-11-02 07:45:30 -08:00
Luis Ramos
c9972189d0
Change usage of Spree::Admin::BaseController to Admin::BaseController
2020-10-31 09:56:59 +00:00
Pau Pérez Fabregat
642787b95a
Merge branch 'master' into reset-on-demand-on-absent-products
2020-10-28 17:28:53 +01:00
Luis Ramos
c5186c2412
Fix rubocop_specs file path
2020-10-26 17:27:38 +00:00
Luis Ramos
0b51d8b297
Add rubocop config to allow specs to be 300 lines long
2020-10-26 17:03:50 +00:00
Cillian O'Ruanaidh
2cc751cb30
When resetting stock to 0 on absent products in product import also reset the on demand setting
...
Before when you imported products and clicked the 'Set stock to zero for all existing products not present in the file' option it would set the on hand stock to 0 but if the variant was also set to be on demand the product would still be available for sale. This change makes sure the on demand setting is turned off too.
Fixes #6064 .
2020-10-16 11:38:49 +01:00
Luis Ramos
ff9f374950
Merge pull request #6050 from Matt-Yorkley/stripe-checkout-spec
...
Stripe checkout spec
2020-10-02 18:57:22 +01:00
François Turbelin
eda904337b
Merge pull request #5810 from pacodelaluna/improve-dfc-standard-integration
...
Improve DFC Provider engine to support version 1.3
2020-09-30 11:13:03 +02:00
Arun Kumar Mohan
317618595c
Replace create with build_stubbed in coordinator model specs
2020-09-21 01:47:19 -05:00
Matt-Yorkley
70bd2161ba
Rename Stripe Connect factory for clarity
2020-09-19 12:55:31 +01:00
Luis Ramos
e413920335
Move both OptionValueNamer and VariantAndLineItemNaming to app/services/variant_units
2020-09-03 09:11:00 -07:00
François Turbelin
52d82d0a96
Use not found instead of 404 for spec descriptions
2020-09-03 00:59:21 +02:00
François Turbelin
d11d67561f
Remove extra delegation in serializers
2020-09-03 00:58:54 +02:00
François Turbelin
d2c147109d
Use Persons instead of People
2020-09-03 00:56:42 +02:00
François Turbelin
b60c1c9003
Dry current_enterprise emtod with enterprise_id_param_name
2020-09-03 00:50:23 +02:00
François Turbelin
59fb2abc5d
Fix inheritance issue with specs on Semaphore
2020-09-02 23:08:47 +02:00
François Turbelin
6508897e3d
Introduce current_enterprise with memoization
2020-09-02 22:28:12 +02:00
François Turbelin
1baba5b61c
Introduce current_user with memoization
2020-09-02 22:18:56 +02:00
François Turbelin
4f2b7094d0
Use before_action instead of before_filter
2020-09-02 21:48:13 +02:00
Luis Ramos
ea053552b9
Merge pull request #5938 from cillian/bulk-coop-report-filter-fixes
...
Fix the bulk coop report date and distributor filters.
2020-09-01 16:21:31 +01:00
François Turbelin
d5800642e7
Map DFC SuppliedProduct with OFN Variant
2020-08-30 23:11:59 +02:00
Cillian O'Ruanaidh
9efee1b0be
In bulk coop report service spec just check array has the same elements but don't check the order.
...
The #table_items methos seems to return line items in different order sometimes making this test a bit flaky. The test passed on Semaphore previously and is passing in development. I don't think the order matters so using :match_array instead of :eq.
2020-08-28 12:20:47 +01:00
Cillian O'Ruanaidh
a441979649
Pass in :report_type parameter correctly to bulk coop report so different report types are generated
...
Also add tests for each of the different report types. I didn't make these JavaScript tests because not sure that is necessary and they would be slower.
2020-08-28 11:09:34 +01:00
Pau Pérez Fabregat
2fa8cd54fd
Merge pull request #5769 from Matt-Yorkley/customer-names
...
Customer names in reports
2020-08-27 15:39:47 +02:00
Luis Ramos
41d67d8b2e
Fix estimator spec
2020-08-23 18:07:01 +01:00
Cillian O'Ruanaidh
cdd09e8f97
Fix the bulk coop report date and distributor filters.
...
Before the date and distributor filters would have no effect. This is because the BulkCoopReport is still generated using an older style method, and isn't generated using the newer method like in the EnterpriseFeeSummaryReport. This older style report expects to receive a :q parameter but it actually received the newer style :report parameter so the filters were not being applied.
This keeps the newer style report params but converts them, after they are authorised as safe, into the older style in the controller.
2020-08-21 15:08:58 +01:00
Luis Ramos
d6160b5759
Merge pull request #5758 from luisramos0/order_updater
...
Bring Order Updater from spree_core
2020-08-19 20:47:27 +01:00
Matt-Yorkley
0b91991919
Add explanatory user message for viewing customer names
2020-08-14 20:48:33 +01:00
François Turbelin
c3cf08156d
Add People controller
2020-08-13 11:49:45 +02:00
François Turbelin
8d4587506b
Add SuppliedProducts controller
2020-08-13 11:46:48 +02:00
François Turbelin
99e905c768
Simplify enterprise check logic
2020-08-13 11:02:31 +02:00
François Turbelin
46d38930d9
Add some ajustements
2020-08-12 20:53:02 +02:00
François Turbelin
a4e8982351
Rename ProductsController into CatalogItemsController
2020-08-12 19:51:12 +02:00
François Turbelin
13e15f823e
Add Read action for Enterprise and CatalogItem
2020-08-12 19:43:20 +02:00
François Turbelin
508ecd6bf7
Adjust with Rubocop suggestions
2020-08-12 13:46:23 +02:00
François Turbelin
d10fda6227
Put context inside serializer
2020-08-12 13:37:48 +02:00
François Turbelin
2a8268ca73
Use ActiveModelSerializer for DFC serialization
2020-08-12 13:37:01 +02:00
Pau Pérez Fabregat
70e2fb759c
Merge pull request #5751 from luisramos0/subs_jobs
...
Add rescue statements with bugsnag alerts to subs jobs
2020-08-10 12:50:54 +02:00
François Turbelin
8687e0199d
Apply cosmetics
2020-08-05 08:20:14 +02:00