Merge branch 'fix-autocomplete-spec' into 'master'

Fix volatile spec.

Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/312.

See merge request !206
This commit is contained in:
Robert Speicher 2016-02-22 19:39:25 +00:00 committed by Rémy Coutable
parent 7c80998536
commit e6195b859f

View file

@ -21,7 +21,7 @@ describe AutocompleteController do
it { expect(body).to be_kind_of(Array) }
it { expect(body.size).to eq 1 }
it { expect(body.first["username"]).to eq user.username }
it { expect(body.map { |u| u["username"] }).to include(user.username) }
end
describe 'GET #users with unknown project' do