From ea6b203448cf7fddc1a9876b73830bc34c580be7 Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 30 May 2022 13:50:24 +0100 Subject: [PATCH] correctly failing feature --- spec/features/organisation_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/features/organisation_spec.rb b/spec/features/organisation_spec.rb index 9e4c5dbba..23620a370 100644 --- a/spec/features/organisation_spec.rb +++ b/spec/features/organisation_spec.rb @@ -166,6 +166,17 @@ RSpec.describe "User Features" do context "when I search for users belonging to a specific organisation" do context "when I am signed in and there are users in the database" do + let!(:user_list) { FactoryBot.create_list(:user, 4, organisation: organisation) } + + context "when I visit the organisation page" do + before do + visit("/organisations/#{org_id}") + end + + it "has link to the organisations users tab" do + expect(page).to have_link("Users", href: "/organisations/#{org_id}/users") + end + end end end end