spec/shared/features/nested_documentable.rb
File nested_documentable.rb
has 275 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
%w
-literals should be delimited by [
and ]
. (https://github.com/bbatsov/ruby-style-guide#percent-literal-braces) Open
Open
FILENAMES ||= %w(clippy empty logo).freeze
- Read upRead up
- Exclude checks
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)