Add expectation for redirect

This commit is contained in:
David Cook
2025-05-13 15:18:39 +10:00
parent 82f94e3969
commit 6a5faaef22

View File

@@ -6,9 +6,10 @@ RSpec.describe Admin::VariantOverridesController, type: :controller do
describe "index" do
context "not logged in" do
it "redirects to login" do
pending
get :index
expect(response).to have_http_status :found
expect(response).to redirect_to(
root_path(anchor: "/login", after_login: admin_inventory_path)
)
end
end