mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Add expectation for redirect
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user