Skip to content

Commit

Permalink
Ruboco inline disable Lint/SymbolConversion for fields/base_spec for …
Browse files Browse the repository at this point in the history
…string key spec
  • Loading branch information
Vitalina-Vakulchyk committed Mar 31, 2021
1 parent a30139d commit f0dffe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ Lint/MissingSuper:
- 'lib/chewy/type/adapter/object.rb'
- 'lib/chewy/type/adapter/orm.rb'

# Offense count: 3
Lint/SymbolConversion:
Exclude:
- 'spec/chewy/fields/base_spec.rb'

# Offense count: 35
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Expand Down
4 changes: 3 additions & 1 deletion spec/chewy/fields/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
end

context 'nested fields' do
context 'with ignore_blank: true flag' do
context 'with ignore_blank: true flag' do
before do
stub_index(:countries) do
define_type Country do
Expand Down Expand Up @@ -561,6 +561,7 @@
end
end

# rubocop:disable Lint/SymbolConversion
context 'pass ignore_blank with string key' do
before do
stub_index(:countries) do
Expand Down Expand Up @@ -596,6 +597,7 @@
)
end
end
# rubocop:enable Lint/SymbolConversion

context 'geo_point field type' do
context 'with ignore_blank: true flag' do
Expand Down

0 comments on commit f0dffe3

Please sign in to comment.