Skip to content

Commit

Permalink
Fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Nov 15, 2024
1 parent 7efc440 commit 1a56ab7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/aws/rails/middleware/elastic_beanstalk_sqsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(app)
end

def call(env)
request = ActionDispatch::Request.new(env)
request = ::ActionDispatch::Request.new(env)
return @app.call(env) unless from_sqs_daemon?(request)

@logger.debug('aws-sdk-rails middleware detected a call from the Elastic Beanstalk SQS Daemon.')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# frozen_string_literal: true

require 'test_helper'

module Aws
module Rails
module Middleware
class ElasticBeanstalkSQSDTest < ActiveSupport::TestCase
describe ElasticBeanstalkSQSD do
# Simple mock Rack app that always returns 200
let(:mock_rack_app) { ->(_) { [200, { 'Content-Type' => 'text/plain' }, ['OK']] } }

Expand Down
File renamed without changes.

0 comments on commit 1a56ab7

Please sign in to comment.