diff --git a/spec/integration/middleware_spec.rb b/spec/integration/middleware_spec.rb index fca80af0..fe7cce30 100644 --- a/spec/integration/middleware_spec.rb +++ b/spec/integration/middleware_spec.rb @@ -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 @@ -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') diff --git a/spec/lib/profiler_spec.rb b/spec/lib/profiler_spec.rb index 4abec11e..6f93b706 100644 --- a/spec/lib/profiler_spec.rb +++ b/spec/lib/profiler_spec.rb @@ -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"], ])