diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index f9aa899..a7977d1 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -31,7 +31,7 @@ describe UsersController, type: 'controller' do context "GET /users/:my_id/edit" do it 'finds the user' do get :edit, :id => user.id - expect(controller.user).to eq user + expect(controller.user).to eq(user) expect(response).to render_template 'edit' end @@ -234,12 +234,12 @@ describe UsersController, type: 'controller' do } let(:user_param) { {'user' => { :name => 'foo', :admin => true }} } it 'not have admin field' do - expect(controller.send(:user_params)).to eq ({'name' => 'foo'}) + expect(controller.send(:user_params)).to eq({'name' => 'foo'}) end context "with password and password_confirmation empty?" do let(:user_param) { {'user' => { :name => 'foo', 'password' => '', 'password_confirmation' => '' }} } it 'not have password and password_confirmation field' do - expect(controller.send(:user_params)).to eq ({'name' => 'foo'}) + expect(controller.send(:user_params)).to eq({'name' => 'foo'}) end end end diff --git a/spec/interactors/problem_merge_spec.rb b/spec/interactors/problem_merge_spec.rb index 2436b96..106cecd 100644 --- a/spec/interactors/problem_merge_spec.rb +++ b/spec/interactors/problem_merge_spec.rb @@ -36,7 +36,7 @@ describe ProblemMerge do it 'move all err in one problem' do problem_merge.merge - expect(problem.reload.errs.map(&:id).sort).to eq (first_errs | merged_errs).map(&:id).sort + expect(problem.reload.errs.map(&:id).sort).to eq((first_errs | merged_errs).map(&:id).sort) end it 'keeps the issue link' do diff --git a/spec/models/notice_spec.rb b/spec/models/notice_spec.rb index 10d6354..26505bf 100644 --- a/spec/models/notice_spec.rb +++ b/spec/models/notice_spec.rb @@ -107,7 +107,7 @@ describe Notice, type: 'model' do describe "request" do it "returns empty hash if not set" do notice = Notice.new - expect(notice.request).to eq ({}) + expect(notice.request).to eq({}) end end diff --git a/spec/models/problem_spec.rb b/spec/models/problem_spec.rb index 9d38b8f..64dba07 100644 --- a/spec/models/problem_spec.rb +++ b/spec/models/problem_spec.rb @@ -263,7 +263,7 @@ describe Problem, type: 'model' do end it "#messages should be empty by default" do - expect(@problem.messages).to eq ({}) + expect(@problem.messages).to eq({}) end it "removing a notice removes string from #messages" do @@ -290,7 +290,7 @@ describe Problem, type: 'model' do end it "#hosts should be empty by default" do - expect(@problem.hosts).to eq ({}) + expect(@problem.hosts).to eq({}) end it "removing a notice removes string from #hosts" do @@ -310,7 +310,7 @@ describe Problem, type: 'model' do end it "#user_agents should be empty by default" do - expect(@problem.user_agents).to eq ({}) + expect(@problem.user_agents).to eq({}) end it "removing a notice removes string from #user_agents" do -- libgit2 0.21.2