diff --git a/spec/requests/users_controller_spec.rb b/spec/requests/users_controller_spec.rb index 56112974b..11cf3f45d 100644 --- a/spec/requests/users_controller_spec.rb +++ b/spec/requests/users_controller_spec.rb @@ -1612,7 +1612,7 @@ RSpec.describe UsersController, type: :request do expect(page).to have_select("user-organisation-id-field", options: Organisation.pluck(:name)) end - context "when organisation id is present in params in there are multiple organisations in the database" do + context "when organisation id is present in params and there are multiple organisations in the database" do it "has only specific organisation name in the dropdown" do get "/users/new", params: { organisation_id: user.organisation.id } expect(page).to have_select("user-organisation-id-field", options: [user.organisation.name])