mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #4882 from Matt-Yorkley/3-0-api-with-nil-id
[Spree 2.1] Fix spec setup in api/orders_controller_spec
This commit is contained in:
@@ -165,7 +165,7 @@ module Api
|
||||
before { allow(controller).to receive(:spree_current_user) { admin_user } }
|
||||
|
||||
it "when no order number is given" do
|
||||
get :show, id: nil
|
||||
get :show, id: ""
|
||||
expect(response).to have_http_status(:not_found)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user