Skip to content

Commit

Permalink
Fixed rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Nov 13, 2023
1 parent 73ea9a0 commit 1569f65
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions lib/grape.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 0 additions & 2 deletions lib/grape/middleware/auth/strategies.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'rack/auth/basic'

module Grape
module Middleware
module Auth
Expand Down
10 changes: 0 additions & 10 deletions spec/grape/middleware/error_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1569f65

Please sign in to comment.