From 49526805a9ef94d574379863f2b869dd6a25f0db Mon Sep 17 00:00:00 2001 From: Jose Galisteo Date: Tue, 15 Jun 2021 23:11:09 +0200 Subject: [PATCH] Allow content-type header with charset on test. Specs fails when the Content-Type is "text/plain; charset=utf-8" --- spec/integration/mini_profiler_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/mini_profiler_spec.rb b/spec/integration/mini_profiler_spec.rb index 9b44042f..b3b7ed4a 100644 --- a/spec/integration/mini_profiler_spec.rb +++ b/spec/integration/mini_profiler_spec.rb @@ -393,7 +393,7 @@ def load_prof(response) describe 'gc profiler' do it "should return a report" do get '/html?pp=profile-gc' - expect(last_response.header['Content-Type']).to eq('text/plain') + expect(last_response.header['Content-Type']).to include('text/plain') end end