Commit 6cbf6dd1 authored by Ruben Davila's avatar Ruben Davila

Fix AutocompleteController spec.

`user2` is not a member of the Project.
parent 98c926b5
......@@ -57,8 +57,8 @@ describe AutocompleteController do
let(:body) { JSON.parse(response.body) }
it { expect(body).to be_kind_of(Array) }
it { expect(body.size).to eq 2 }
it { expect(body.map { |user| user["username"] }).to match_array([user.username, user2.username]) }
it { expect(body.size).to eq 1 }
it { expect(body.map { |user| user["username"] }).to match_array([user.username]) }
end
end
......
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