mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Switch controller helper calls routes from spree to main_app, this will include all routes all the time
This commit is contained in:
@@ -34,7 +34,7 @@ module Api
|
||||
|
||||
describe "#closed_shops" do
|
||||
it "returns data for all closed shops" do
|
||||
spree_get :closed_shops, nil
|
||||
spree_get :closed_shops, {}
|
||||
|
||||
expect(json_response).not_to match hub.name
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ module ControllerRequestsHelper
|
||||
|
||||
def process_spree_action(action, params = {}, session = nil, flash = nil, method = "GET")
|
||||
process(action,
|
||||
params.merge!(use_route: :spree),
|
||||
params.merge!(use_route: :main_app),
|
||||
session,
|
||||
flash,
|
||||
method)
|
||||
|
||||
Reference in New Issue
Block a user