diff options
author | Robert Speicher <robert@gitlab.com> | 2016-02-22 19:39:25 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-02-23 10:11:39 +0100 |
commit | e6195b859f03c14b4a1b5510f14bbf41740efd79 (patch) | |
tree | 3c853e2b7901ecbb8a3dd752e901bdf076fb4440 /spec | |
parent | 7c8099853621cc2a244bf6e0fd37a8b503d1ec5e (diff) | |
download | gitlab-ce-e6195b859f03c14b4a1b5510f14bbf41740efd79.tar.gz |
Merge branch 'fix-autocomplete-spec' into 'master'
Fix volatile spec.
Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/312.
See merge request !206
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/autocomplete_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/autocomplete_controller_spec.rb b/spec/controllers/autocomplete_controller_spec.rb index 85379a8e984..410b993fdfb 100644 --- a/spec/controllers/autocomplete_controller_spec.rb +++ b/spec/controllers/autocomplete_controller_spec.rb @@ -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 |