diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-13 18:24:51 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-13 18:37:30 -0400 |
commit | 422236c71eb8f1c88e83331b6eb74211fd7ccf49 (patch) | |
tree | 45066da8510fcd65d87eaa390261be94fb58c457 /spec/controllers/autocomplete_controller_spec.rb | |
parent | 75a40ad5bcee37f43fcfe89789dbd8c65be56c21 (diff) | |
download | gitlab-ce-422236c71eb8f1c88e83331b6eb74211fd7ccf49.tar.gz |
Change `foo.should` syntax to `expect(foo).to` in specs
Diffstat (limited to 'spec/controllers/autocomplete_controller_spec.rb')
-rw-r--r-- | spec/controllers/autocomplete_controller_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/controllers/autocomplete_controller_spec.rb b/spec/controllers/autocomplete_controller_spec.rb index a0909cec3bd..1ea1227b28b 100644 --- a/spec/controllers/autocomplete_controller_spec.rb +++ b/spec/controllers/autocomplete_controller_spec.rb @@ -15,9 +15,9 @@ describe AutocompleteController do let(:body) { JSON.parse(response.body) } - it { body.should be_kind_of(Array) } - it { body.size.should eq(1) } - it { body.first["username"].should == user.username } + it { expect(body).to be_kind_of(Array) } + it { expect(body.size).to eq(1) } + it { expect(body.first["username"]).to eq user.username } end context 'group members' do @@ -32,9 +32,9 @@ describe AutocompleteController do let(:body) { JSON.parse(response.body) } - it { body.should be_kind_of(Array) } - it { body.size.should eq(1) } - it { body.first["username"].should == user.username } + it { expect(body).to be_kind_of(Array) } + it { expect(body.size).to eq(1) } + it { expect(body.first["username"]).to eq user.username } end context 'all users' do @@ -45,7 +45,7 @@ describe AutocompleteController do let(:body) { JSON.parse(response.body) } - it { body.should be_kind_of(Array) } - it { body.size.should eq(User.count) } + it { expect(body).to be_kind_of(Array) } + it { expect(body.size).to eq(User.count) } end end |