From 2a1dc7953f9594c9bb9d7de915f1a331129cfce3 Mon Sep 17 00:00:00 2001 From: Yar04ek Date: Tue, 28 Nov 2023 14:22:39 +0100 Subject: [PATCH] fix: ApiTableCellPr.ToJSON --- spec/docx/smoke/api_table_row_properties_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/docx/smoke/api_table_row_properties_spec.rb b/spec/docx/smoke/api_table_row_properties_spec.rb index 6bfe1754..beb913dd 100644 --- a/spec/docx/smoke/api_table_row_properties_spec.rb +++ b/spec/docx/smoke/api_table_row_properties_spec.rb @@ -19,7 +19,7 @@ it 'ApiTableRowPr | ToJson method' do docx = builder.build_and_parse('js/docx/smoke/api_table_row_pr/to_json.js') - json = docx.elements[1].nonempty_runs.map(&:text).join + json = docx.elements[0].nonempty_runs.map(&:text).join parsed_json = JSON.parse(json) expect(parsed_json).to include('name' => 'My Custom Table Style') end