From 6a53d354599c0c36a00217bb1b586bbe22ee198f Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 1 Dec 2021 22:02:19 +0000 Subject: [PATCH] Test redirect --- spec/features/organisation_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/features/organisation_spec.rb b/spec/features/organisation_spec.rb index ceeea1eaf..3a3d97b7e 100644 --- a/spec/features/organisation_spec.rb +++ b/spec/features/organisation_spec.rb @@ -37,6 +37,7 @@ RSpec.describe "User Features" do fill_in("user[name]", with: "New User") fill_in("user[email]", with: "new_user@example.com") expect { click_button("Continue") }.to change { ActionMailer::Base.deliveries.count }.by(1) + expect(page).to have_current_path("/organisations/#{org_id}/users") end end end