Switch controller helper calls routes from spree to main_app, this will include all routes all the time

This commit is contained in:
Luis Ramos
2020-06-02 15:00:57 +01:00
parent 13836a62bb
commit 7b89f4d6c5
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)