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