Skip to content

Commit

Permalink
ref: default_styles order & doc_builder_testing require order
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Jun 18, 2024
1 parent 360e0f2 commit 78eebe2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-12-05 12:17:16 UTC using RuboCop version 1.58.0.
# on 2024-06-18 14:03:12 UTC using RuboCop version 1.64.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 3
# Offense count: 4
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 16
Max: 21

# Offense count: 126
# Offense count: 130
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 21

# Offense count: 410
# Offense count: 411
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Expand Down
2 changes: 1 addition & 1 deletion lib/doc_builder_testing.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

require 'tempfile'
require 'ooxml_parser'
require 'onlyoffice_pdf_parser'
require 'tempfile'
require_relative 'doc_builder_testing/exceptions'
require_relative 'doc_builder_testing/doc_builder_wrapper'
require_relative 'doc_builder_testing/web_doc_builder_wrapper'
32 changes: 26 additions & 6 deletions spec/test_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ def self.number_formats
# CDE fill types
# @return [Array<String (frozen)>]
def self.fill_types
%w[blipFill solid gradFill noFill pattFill gradFill]
%w[blipFill
solid
gradFill
noFill
pattFill
gradFill]
end

# @return [Array<String (frozen)>]
Expand All @@ -46,11 +51,26 @@ def self.libs

# Default style list in the CDE
def self.default_styles
['Normal', 'No Spacing', 'Heading 1', 'Heading 2',
'Heading 3', 'Heading 4', 'Heading 5', 'Heading 6',
'Heading 7', 'Heading 8', 'Heading 9', 'Title',
'Subtitle', 'Quote', 'Intense Quote', 'List Paragraph',
'Caption', 'Header', 'Footer', 'Footnote text',
['Normal',
'No Spacing',
'Heading 1',
'Heading 2',
'Heading 3',
'Heading 4',
'Heading 5',
'Heading 6',
'Heading 7',
'Heading 8',
'Heading 9',
'Title',
'Subtitle',
'Quote',
'Intense Quote',
'List Paragraph',
'Caption',
'Header',
'Footer',
'Footnote text',
'Endnote text'].freeze
end
end

0 comments on commit 78eebe2

Please sign in to comment.