diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-21 17:49:06 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-14 23:06:00 -0400 |
commit | 6fdbd4b58384fa4d31dd41e82e71227dc5afeb40 (patch) | |
tree | c8a68781ad7f1bff22b0327daed67f25fcb675f4 | |
parent | 2194386add33e7091988fea2ca8bf92b205aa68a (diff) | |
download | gitlab-ce-6fdbd4b58384fa4d31dd41e82e71227dc5afeb40.tar.gz |
Update expect syntax for AutocompleteController spec
Everything in spec/controllers now passes without issue.
-rw-r--r-- | spec/controllers/autocomplete_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/autocomplete_controller_spec.rb b/spec/controllers/autocomplete_controller_spec.rb index 1ea1227b28b..9ad9cb41cc1 100644 --- a/spec/controllers/autocomplete_controller_spec.rb +++ b/spec/controllers/autocomplete_controller_spec.rb @@ -16,7 +16,7 @@ describe AutocompleteController do let(:body) { JSON.parse(response.body) } it { expect(body).to be_kind_of(Array) } - it { expect(body.size).to eq(1) } + it { expect(body.size).to eq 1 } it { expect(body.first["username"]).to eq user.username } end @@ -33,7 +33,7 @@ describe AutocompleteController do let(:body) { JSON.parse(response.body) } it { expect(body).to be_kind_of(Array) } - it { expect(body.size).to eq(1) } + it { expect(body.size).to eq 1 } it { expect(body.first["username"]).to eq user.username } end @@ -46,6 +46,6 @@ describe AutocompleteController do let(:body) { JSON.parse(response.body) } it { expect(body).to be_kind_of(Array) } - it { expect(body.size).to eq(User.count) } + it { expect(body.size).to eq User.count } end end |