Commit 47931f8c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix Rubocop offenses for cops enabled in CE

parent fb2577cd
...@@ -24,7 +24,7 @@ module API ...@@ -24,7 +24,7 @@ module API
@users = @users.non_ldap if skip_ldap @users = @users.non_ldap if skip_ldap
@users = @users.search(params[:search]) if params[:search].present? @users = @users.search(params[:search]) if params[:search].present?
@users = paginate @users @users = paginate @users
end end
if current_user.is_admin? if current_user.is_admin?
present @users, with: Entities::UserFull present @users, with: Entities::UserFull
......
...@@ -106,7 +106,7 @@ describe Oauth::GeoAuthController do ...@@ -106,7 +106,7 @@ describe Oauth::GeoAuthController do
allow_any_instance_of(Oauth2::LogoutTokenValidationService).to receive(:execute) { { status: :error, message: :expired } } allow_any_instance_of(Oauth2::LogoutTokenValidationService).to receive(:execute) { { status: :error, message: :expired } }
get :logout, state: logout_state get :logout, state: logout_state
expect(response.body).to include("There is a problem with the OAuth access_token: #{:expired}") expect(response.body).to include("There is a problem with the OAuth access_token: expired")
end end
end end
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