spec/shared/features/nested_documentable.rb

Summary

Maintainability
A
2 hrs
Test Coverage

File nested_documentable.rb has 275 lines of code (exceeds 250 allowed). Consider refactoring.
Open

shared_examples "nested documentable" do |login_as_name, documentable_factory_name,
                                          path, documentable_path_arguments,
                                          fill_resource_method_name, submit_button,
                                          documentable_success_notice|
  include ActionView::Helpers
Severity: Minor
Found in spec/shared/features/nested_documentable.rb - About 2 hrs to fix

    %w-literals should be delimited by [ and ]. (https://github.com/bbatsov/ruby-style-guide#percent-literal-braces)
    Open

          FILENAMES ||= %w(clippy empty logo).freeze

    This cop enforces the consistent usage of %-literal delimiters.

    Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

    Example:

    # Style/PercentLiteralDelimiters:
    #   PreferredDelimiters:
    #     default: '[]'
    #     '%i':    '()'
    
    # good
    %w[alpha beta] + %i(gamma delta)
    
    # bad
    %W(alpha #{beta})
    
    # bad
    %I(alpha beta)

    There are no issues that match your filters.

    Category
    Status