mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #4921 from luisramos0/li_ctrl
Fix line_items_controller_spec in the rails 4 branch
This commit is contained in:
@@ -59,7 +59,10 @@ describe LineItemsController, type: :controller do
|
||||
end
|
||||
|
||||
context "where the item's order is associated with the current user" do
|
||||
before { order.update_attributes!(user_id: user.id) }
|
||||
before do
|
||||
order.update_attributes!(user_id: user.id)
|
||||
allow(controller).to receive_messages spree_current_user: item.order.user
|
||||
end
|
||||
|
||||
context "without an order cycle or distributor" do
|
||||
it "denies deletion" do
|
||||
|
||||
Reference in New Issue
Block a user