From 333178b4771d80d330c2a872ddae87857548d5c6 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 23 May 2022 18:08:38 +0100 Subject: [PATCH] Dupe attribute --- spec/requests/users_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/users_controller_spec.rb b/spec/requests/users_controller_spec.rb index b9bd46042..31448b102 100644 --- a/spec/requests/users_controller_spec.rb +++ b/spec/requests/users_controller_spec.rb @@ -364,7 +364,7 @@ RSpec.describe UsersController, type: :request do end context "when a search parameter is passed" do - let!(:other_user_2) { FactoryBot.create(:user, name: "Stock name", organisation: user.organisation, name: "joe", email: "other@example.com") } + let!(:other_user_2) { FactoryBot.create(:user, organisation: user.organisation, name: "joe", email: "other@example.com") } let!(:other_user_3) { FactoryBot.create(:user, name: "User 5", organisation: user.organisation, email: "joe@example.com") } let!(:other_org_user) { FactoryBot.create(:user, name: "User 4", email: "joe@other_example.com") }