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