diff --git a/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb b/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb
+++ b/spec/lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema_spec.rb
@@ -30,7 +30,7 @@ RSpec.describe GovukPublishingComponents::Presenters::HtmlPublicationSchema do
 
     it "behaves like an article" do
       expect(structured_data["@type"]).to eql("Article")
-      expect(structured_data["articleBody"]).to eq(page.body)
+      expect(structured_data["articleBody"].to_s).to eq(page.body)
     end
 
     context "when one heading present" do
Fix test by ensuring we compare same types