Fix review comments
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
###########################################################################################################
|
||||
|
||||
# ---------------------------- Start of Builder 0 - Gemset Build ------------------------------------------
|
||||
FROM ruby:3.4.5-slim-bullseye AS builder
|
||||
FROM ruby:3.4.7-slim-bookworm AS builder
|
||||
|
||||
COPY . /beef
|
||||
|
||||
@@ -46,7 +46,7 @@ RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
|
||||
|
||||
|
||||
# ---------------------------- Start of Builder 1 - Final Build ------------------------------------------
|
||||
FROM ruby:3.4.5-slim-bullseye
|
||||
FROM ruby:3.4.7-slim-bookworm
|
||||
LABEL maintainer="Beef Project" \
|
||||
source_url="github.com/beefproject/beef" \
|
||||
homepage="https://beefproject.com/"
|
||||
|
||||
@@ -32,7 +32,7 @@ RSpec.describe 'BeEF Redirector' do
|
||||
response = Curl::Easy.http_get("http://127.0.0.1:#{@port}/test/")
|
||||
expect(response.response_code).to eql(302)
|
||||
expect(response.body_str).to eql("302 found")
|
||||
expect(response.header_str).to match(/location:\s*http:\/\/www\.beefproject\.com/i)
|
||||
expect(response.header_str).to match(/^location:\s*http:\/\/www\.beefproject\.com\r?$/i)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user