Browse Source

typo

pull/627/head
JG 3 years ago
parent
commit
8ebb5e664c
  1. 2
      spec/requests/users_controller_spec.rb

2
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])

Loading…
Cancel
Save