Skip to content

Commit

Permalink
Test update
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Apr 11, 2023
1 parent 3a0559b commit de9eb1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions spec/integration/middleware_spec.rb
Expand Up @@ -119,7 +119,7 @@ def app
)
expect(last_response.headers['Content-Type']).to eq('text/plain; charset=utf-8')
expect(last_response.headers['X-CUSTOM']).to eq('1')
expect(last_response.status).to eq(201)
expect(last_response.status).to eq(500)
end
end

Expand Down Expand Up @@ -234,7 +234,6 @@ def with_profile_parameter(param)
Rack::MiniProfiler.config.profile_parameter = old_param
end


it 'show help page' do
with_profile_parameter('profile') do
do_get(profile: 'help')
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/profiler_spec.rb
Expand Up @@ -220,7 +220,7 @@ def self.bar(baz, boo)
response = profiler.call({ "PATH_INFO" => "/", "QUERY_STRING" => "pp=profile-memory" })

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

0 comments on commit de9eb1c

Please sign in to comment.