mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #3013 from luisramos0/2-0-api-orders-ctrl-spec
[Spree Upgrade] Fix api/orders_controller_spec
This commit is contained in:
@@ -25,19 +25,19 @@ module Api
|
||||
distributor: distributor, billing_address: create(:address) )
|
||||
end
|
||||
let!(:line_item1) do
|
||||
create(:line_item, order: order1,
|
||||
create(:line_item_with_shipment, order: order1,
|
||||
product: create(:product, supplier: supplier))
|
||||
end
|
||||
let!(:line_item2) do
|
||||
create(:line_item, order: order2,
|
||||
create(:line_item_with_shipment, order: order2,
|
||||
product: create(:product, supplier: supplier))
|
||||
end
|
||||
let!(:line_item3) do
|
||||
create(:line_item, order: order2,
|
||||
create(:line_item_with_shipment, order: order2,
|
||||
product: create(:product, supplier: supplier))
|
||||
end
|
||||
let!(:line_item4) do
|
||||
create(:line_item, order: order3,
|
||||
create(:line_item_with_shipment, order: order3,
|
||||
product: create(:product, supplier: supplier))
|
||||
end
|
||||
let!(:regular_user) { create(:user) }
|
||||
@@ -149,8 +149,8 @@ module Api
|
||||
def order_attributes
|
||||
[
|
||||
:id, :number, :full_name, :email, :phone, :completed_at, :display_total,
|
||||
:show_path, :edit_path, :state, :payment_state, :shipment_state,
|
||||
:payments_path, :shipments_path, :ship_path, :ready_to_ship, :created_at,
|
||||
:edit_path, :state, :payment_state, :shipment_state,
|
||||
:payments_path, :ship_path, :ready_to_ship, :created_at,
|
||||
:distributor_name, :special_instructions, :payment_capture_path
|
||||
]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user