Commit 7d32ad01 authored by Valery Sizov's avatar Valery Sizov

Fix autocomplete_controller_spec.rb

parent 23ba63fd
......@@ -38,6 +38,8 @@ describe AutocompleteController do
get(:users, project_id: project.id, push_code_to_protected_branches: 'true')
end
let(:body) { JSON.parse(response.body) }
it { expect(body).to be_kind_of(Array) }
it { expect(body.size).to eq 1 }
it { expect(body.first["username"]).to eq user.username }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment