diff --git a/spec/integration/sentry_spec.rb b/spec/integration/sentry_spec.rb index a88ea0cda..f46ed7dec 100644 --- a/spec/integration/sentry_spec.rb +++ b/spec/integration/sentry_spec.rb @@ -44,12 +44,8 @@ expect(filtered_event.to_hash.to_s).not_to include "submission-email@test.example" end - it "replaces the email address in the exception with a comment" do - expect(filtered_event.to_hash[:exception][:values].first[:value]).to include "[Filtered (client-side)]" - end - it "keeps the rest of the exception message" do - expect(filtered_event.to_hash[:exception][:values].first[:value]).to include "undefined method" + expect(filtered_event.to_hash[:exception][:values].first[:value]).to eq "undefined method `not_a_method' for an instance of Form (NoMethodError)" end end