diff --git a/spec/inferno/dsl/fhir_resource_validation_spec.rb b/spec/inferno/dsl/fhir_resource_validation_spec.rb index 41199dcc0..216ca11cb 100644 --- a/spec/inferno/dsl/fhir_resource_validation_spec.rb +++ b/spec/inferno/dsl/fhir_resource_validation_spec.rb @@ -177,15 +177,15 @@ .to_return( status: 500, body: "Internal Server Error: content#{0.chr} with non-printable#{1.chr} characters" - ) + ) expect do validator.resource_is_valid?(resource2, profile_url, runnable) end.to raise_error(Inferno::Exceptions::ErrorInValidatorException) msg = runnable.messages.first[:message] - expect(msg).not_to include(0.chr) - expect(msg).not_to include(1.chr) + expect(msg).to_not include(0.chr) + expect(msg).to_not include(1.chr) expect(msg).to match(/Internal Server Error: content with non-printable/) end end diff --git a/spec/inferno/dsl/fhir_validation_spec.rb b/spec/inferno/dsl/fhir_validation_spec.rb index 354b7d4f5..94c5a3784 100644 --- a/spec/inferno/dsl/fhir_validation_spec.rb +++ b/spec/inferno/dsl/fhir_validation_spec.rb @@ -183,15 +183,15 @@ .to_return( status: 500, body: "Internal Server Error: content#{0.chr} with non-printable#{1.chr} characters" - ) + ) expect do validator.resource_is_valid?(resource, profile_url, runnable) end.to raise_error(Inferno::Exceptions::ErrorInValidatorException) msg = runnable.messages.first[:message] - expect(msg).not_to include(0.chr) - expect(msg).not_to include(1.chr) + expect(msg).to_not include(0.chr) + expect(msg).to_not include(1.chr) expect(msg).to match(/Internal Server Error: content with non-printable/) end end