From 1569f65b03ae43f45280bd15a022f5eff34cd086 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 12 Nov 2023 22:22:26 -0500 Subject: [PATCH] Fixed rubocop --- lib/grape.rb | 1 + lib/grape/middleware/auth/strategies.rb | 2 -- spec/grape/middleware/error_spec.rb | 10 ---------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/grape.rb b/lib/grape.rb index af581613d6..34a728ddb4 100644 --- a/lib/grape.rb +++ b/lib/grape.rb @@ -34,6 +34,7 @@ require 'mustermann/grape' require 'pathname' require 'rack' +require 'rack/auth/basic' require 'rack/accept/header' require 'rack/accept/media_type' require 'rack/builder' diff --git a/lib/grape/middleware/auth/strategies.rb b/lib/grape/middleware/auth/strategies.rb index 865a25dc49..56855263e4 100644 --- a/lib/grape/middleware/auth/strategies.rb +++ b/lib/grape/middleware/auth/strategies.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rack/auth/basic' - module Grape module Middleware module Auth diff --git a/spec/grape/middleware/error_spec.rb b/spec/grape/middleware/error_spec.rb index 2698218100..d056ca7e2a 100644 --- a/spec/grape/middleware/error_spec.rb +++ b/spec/grape/middleware/error_spec.rb @@ -82,14 +82,4 @@ def app expect(last_response.body).to eq({ code: 200, static: 'static text' }.to_json) end end - - context 'NotImplementedError' do - let(:api) do - Class.new(Grape::Api) do - get :test do - raise NotImplementedError - end - end - end - end end