diff --git a/spec/docx/smoke/api_document_content_spec.rb b/spec/docx/smoke/api_document_content_spec.rb index afcfff15..a2acf323 100644 --- a/spec/docx/smoke/api_document_content_spec.rb +++ b/spec/docx/smoke/api_document_content_spec.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -# frozen_string_literal: true require 'spec_helper' describe 'ApiDocumentContent section tests' do @@ -59,7 +58,7 @@ docx = builder.build_and_parse('js/docx/smoke/api_document_content/to_json.js') expect(docx.elements[0].hyperlink.action.to_s).to eq('external_link') expect(docx.elements[1].sdt_content.elements[1].character_style_array[0].text).to eq('oBlockLvlSdt') - expect(docx.elements[2].properties.table_style.style_id).to eq(DocBuilderStaticData::TABLE_STYLE[:BorderedAccent5]) + expect(docx.elements[2].properties.table_style.name).to eq('CustomTableStyle') json = JSON.parse(docx.elements[5].nonempty_runs.first.text) expect(json['type']).to eq('docContent') expect(json['content'][0]['content'][2]['type']).to eq('hyperlink')