From 5adadd88ef020a0d00e2c2a1aaf42fd12b2082f6 Mon Sep 17 00:00:00 2001 From: JG Date: Wed, 1 Jun 2022 08:43:44 +0100 Subject: [PATCH] selecting subset due to null present in the list as well --- 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 11cf3f45d..7831a45d9 100644 --- a/spec/requests/users_controller_spec.rb +++ b/spec/requests/users_controller_spec.rb @@ -1609,7 +1609,7 @@ RSpec.describe UsersController, type: :request do it "has all organisation names in the dropdown" do get "/users/new" - expect(page).to have_select("user-organisation-id-field", options: Organisation.pluck(:name)) + expect(page).to have_select("user-organisation-id-field", with_options: Organisation.pluck(:name)) end context "when organisation id is present in params and there are multiple organisations in the database" do