Luis Ramos
ad247e2116
Merge pull request #4268 from luisramos0/add_order_endpoint
...
Add api/orders/{order_number} API endpoint
2019-10-16 21:22:27 +01:00
luisramos0
50731e929e
Remove some attributes from test as they are already verified subsequently
2019-09-25 09:54:33 +01:00
luisramos0
baa09b88f7
Fix issue with nil current_order where shipping_method serializer requires a current_order to calculate the shipping fees
2019-09-25 09:52:10 +01:00
luisramos0
2f60a85593
Improve spec/controllers/api/orders_controller_spec, make it more readable
2019-09-23 23:50:42 +01:00
luisramos0
3c412b7b7d
Transpec spec/controllers/api/taxonomies_controller_spec, spec/controllers/api/taxons_controller_spec and spec/models/enterprise_spec
2019-09-19 20:34:30 +01:00
luisramos0
4d37aaac64
Use have_http_status and remove check for error message, that's something for the base_controller test to test
2019-09-19 16:32:09 +01:00
luisramos0
19e28cb14a
Make spec/controllers/api/orders_controller_spec more simple assuming adjustments will always come in the same order
2019-09-19 16:32:09 +01:00
luisramos0
2921ee19e1
Add api/order/{order_number} ednpoint and its new order detailed serializer
2019-09-19 16:32:09 +01:00
luisramos0
e9b5551c0f
Adpat shipment controller to move out of Spree namespace
2019-09-08 12:17:36 +01:00
luisramos0
7cec24f1d4
Move shipments route, controller and ctrl spec from spree/api to api
2019-09-08 12:17:36 +01:00
Luis Ramos
e3ce2a7486
Merge pull request #4104 from luisramos0/convert_taxons_to_ams
...
Convert spree/api/taxons views from rabl to AMS
2019-09-06 00:04:10 +01:00
Matt-Yorkley
ff2db0c5f8
Update spec routes, namespacing, and test content
...
Resolving new issues after a big merge
2019-09-02 14:35:00 +01:00
Matt-Yorkley
90256f9c28
Add defaults and pages tests
2019-09-02 14:35:00 +01:00
Matt-Yorkley
b614e17f48
Add test coverage for #bulk_products endpoint and test all filtering functions
2019-09-02 14:34:54 +01:00
luisramos0
92a270165e
Add missing api taxonomies controller only for the required jstree action
2019-08-28 22:06:56 +01:00
luisramos0
9f5c9916ba
Add back required api actions (create, update and destroy) and add AMS serializers for the jstree action
2019-08-28 22:06:56 +01:00
luisramos0
7a652fd67b
Adapt api/taxons controller to new namespace outside Spree: remove Spree module and add Spree namespace to Taxons and Taxonomy classes
2019-08-28 22:06:56 +01:00
luisramos0
4ca8feeef1
Move api/taxons route and controller out of spree namespace into /api and move the ctrl spec as well
2019-08-28 22:06:56 +01:00
luisramos0
aa3c1aa0fe
Remove Spree module declaration from these files as they were moved out of the spree namespace
2019-08-01 14:30:11 +01:00
luisramos0
31bac9641f
Move api products and variants routes and ctrl out of spree namespace
2019-08-01 14:28:55 +01:00
luisramos0
25451eed6b
Bring api spec helpers from spree_api into ofn/api_helper
2019-07-31 09:36:48 +01:00
luisramos0
1d92d6cc33
Remove unused api endpoint order_cycles and also action enterprises/managed and respective views
2019-07-22 17:35:41 +01:00
Pau Pérez Fabregat
fd95ae7e41
Merge pull request #3847 from Matt-Yorkley/api_access
...
Allow unauthenticated access to OFN API endpoints
2019-06-12 09:45:11 +02:00
Matt-Yorkley
c0a40c616b
Use devise's check_authorization and skip_authorization_check
2019-05-28 22:02:18 +01:00
luisramos0
86b0d71c7e
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
2019-05-28 12:57:29 +01:00
luisramos0
6996353d05
Run transpec for spec/controllers
2019-05-10 01:20:40 +01:00
Matt-Yorkley
fc8b220b4c
Add specs for endpoint and serializers
2019-05-07 10:27:04 +01:00
luisramos0
c1d14686a6
Merge branch 'master' into 2-0-stable-Mar22
2019-03-22 10:55:17 +00:00
luisramos0
4768ca27c7
Remove all dependencies to product distributions including the validation to avoid deleting fees with product distributions
2019-03-13 11:50:35 +00:00
luisramos0
36e2786a1e
Delete Accounts and Billing dead feature code
2019-02-25 14:37:16 +00:00
luisramos0
1b8445eb99
Merge branch 'master' into 2-0-stable-Feb5
2019-02-05 11:16:23 +00:00
Kristina Lim
3104862739
Fix shop accidentally becoming order coordinator
...
The original setup of the order calls:
create(:simple_order_cycle)
Which picks an arbitrary distributor as coordinator:
coordinator { Enterprise.is_distributor.first || ... }
There is a chance that any of the existing distributor enterprises
becomes coordinator, causing a test to intermittently fail.
This commit makes the relationship between the reference enterprises and
the order consistent.
2019-02-01 20:28:36 +00:00
luisramos0
c2e05e7d87
In api orders controller spec, remove inventory_units_shipment_id_null as the filter was removed in spree 2
...
Also set the distributor used in the tests on completed_order_with_fees so results for that distributor are correct
2018-12-21 16:10:31 +00:00
luisramos0
6fc3562a73
Merge branch 'master' into 2-0-stable-dec-18th
2018-12-18 23:32:45 +00:00
Matt-Yorkley
e711c5ed03
Add spec for search filters
2018-12-10 20:48:53 +00:00
luisramos0
3776b891ce
Merge branch 'master' into 2-0-stable-dec-3rd
2018-12-03 15:30:16 +00:00
Hugo Daniel
0868404e98
Add specs for new Api::EnterpriseFeesController
2018-11-15 17:58:56 +01:00
luisramos0
ef5d679f90
Fix api/orders_controller_spec by fixing expectations on order attributes: remove old attributes shipments_path and show_path
2018-11-12 16:31:57 +00:00
luisramos0
bbdbfc1374
Fix opi/orders_controller_spec by providing line items with shipment and thus make the order workflow work
2018-11-12 16:29:38 +00:00
Matt-Yorkley
b826beb0d7
Inline hashes in tests
2018-10-26 21:38:57 +01:00
Matt-Yorkley
8c19d1afec
Move tests from spree/admin/orders_controller_spec to api/orders_controller_spec and tidy up
2018-10-26 21:38:57 +01:00
Matt-Yorkley
1f8f7b0495
Add new Api::OrdersController spec
2018-10-26 21:38:57 +01:00
Kristina Lim
9c3bb863da
Add endpoints for removing enterprise images
2018-09-04 01:32:39 +08:00
Rob Harrington
ddb9ae1140
Load all shops that a user is associated with as a customer
...
Regardless of the presence of an order
2018-06-24 16:28:47 +10:00
Rob Harrington
ffa8a8c7d6
Create Api::BaseController to allow use of ActiveModelSerializers
...
Also add index action to Api::CustomersController
2018-06-22 15:39:47 +10:00
Rob Harrington
6e76fd8164
Add Api::CustomersController with update action
2018-06-22 15:39:46 +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
Matt-Yorkley
fdc14ab44e
Add controller specs
2018-02-14 15:37:22 +00:00
Matt-Yorkley
39f0c5b5b0
Rename contact name field and revert contact name specs
2018-02-07 10:41:53 +11:00
Pau Perez
72889b5c36
Stub current_user instead of api key's user
2017-12-21 10:24:29 +11:00