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
Rob Harrington
82072c8970
Explicitly specifying 'type: :controller' for all controller specs
2017-11-10 08:47:12 +11:00
Rohan Mitchell
59b564c4be
Report job queue status via API
2016-04-13 16:48:24 +10:00
Rob Harrington
3b7700131c
Specify controller specs as such
2016-01-15 09:07:47 +11:00
Rob Harrington
9ab16d8cec
Allowing calls to Api::OrderCyclesController#accessible to specify :as => 'distributor' or 'producer'
2015-05-07 12:50:54 +10:00
Rohan Mitchell
8037811735
Only make new enterprises as hubs when current user *owns*, not just manages a hub.
2015-03-27 14:38:21 +11:00
Rohan Mitchell
0ed1eeffd6
When registering a new enterprise, if user is signed in, owns a hub and is not making a producer, the new enterprise becomes a hub
2015-03-27 14:05:58 +11:00
Maikel Linke
73b8f37d77
Using simple_order_cycle
...
Before: 2 minutes 8.7 seconds
After: 16.11 seconds
2014-11-28 13:55:06 +11:00
Rob Harrington
d3e72b5a2a
Adding images to registration process
2014-09-19 12:41:24 +10:00
Rohan Mitchell
b649d6ef69
Authorise access to OrderCycles API
2014-04-24 13:20:16 +10:00
Rob H
83e3172901
Add accessible action to order_cycles controller for listing order_cycles by enterprises invloved
2014-04-16 18:27:50 +10:00
Rob H
1635e7338e
Add ditributors and suppliers to OC show API
2014-03-05 12:17:08 +11:00
Rob H
fc65eefcfd
Add basic order cycle API
2014-03-05 12:00:26 +11:00