Skip to content

Commit 07b9de8

Browse files
committed
Change other tests to use declaration_markdown
1 parent eb7cf2d commit 07b9de8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/services/form_document_sync_service_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@
239239
end
240240

241241
context "when there is a declaration in Welsh but not in English translations" do
242-
let(:form) { create(:form, available_languages: %w[en cy], declaration_text: "", declaration_text_cy: "Shouldn't be here") }
242+
let(:form) { create(:form, available_languages: %w[en cy], declaration_markdown: "", declaration_markdown_cy: "Shouldn't be here") }
243243

244244
it "does not include the declaration in Welsh" do
245245
service.update_draft_form_document
246246
welsh_form_document = FormDocument.find_by(form:, tag: "draft", language: "cy")
247-
expect(welsh_form_document.content).to include("declaration_text" => nil)
247+
expect(welsh_form_document.content).to include("declaration_markdown" => nil)
248248
end
249249
end
250250

0 commit comments

Comments
 (0)