Skip to content

Commit de9eb1c

Browse files
committed
Test update
1 parent 3a0559b commit de9eb1c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spec/integration/middleware_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def app
119119
)
120120
expect(last_response.headers['Content-Type']).to eq('text/plain; charset=utf-8')
121121
expect(last_response.headers['X-CUSTOM']).to eq('1')
122-
expect(last_response.status).to eq(201)
122+
expect(last_response.status).to eq(500)
123123
end
124124
end
125125

@@ -234,7 +234,6 @@ def with_profile_parameter(param)
234234
Rack::MiniProfiler.config.profile_parameter = old_param
235235
end
236236

237-
238237
it 'show help page' do
239238
with_profile_parameter('profile') do
240239
do_get(profile: 'help')

spec/lib/profiler_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def self.bar(baz, boo)
220220
response = profiler.call({ "PATH_INFO" => "/", "QUERY_STRING" => "pp=profile-memory" })
221221

222222
expect(response).to eq([
223-
200,
223+
500,
224224
{ "Content-Type" => "text/plain; charset=utf-8", "Set-Cookie" => "__profilin=p%3Dt; path=/; HttpOnly; SameSite=Lax" },
225225
["Please install the memory_profiler gem and require it: add gem 'memory_profiler' to your Gemfile"],
226226
])

0 commit comments

Comments
 (0)